[#1484] neofs-cli: Print progress bar after the header has been sent
Make it similar to `object get`. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
b68778ea90
commit
e42b7f6a65
2 changed files with 15 additions and 1 deletions
|
@ -128,7 +128,9 @@ func putObject(cmd *cobra.Command, _ []string) {
|
|||
p = pb.New64(fi.Size())
|
||||
p.Output = cmd.OutOrStdout()
|
||||
prm.SetPayloadReader(p.NewProxyReader(f))
|
||||
p.Start()
|
||||
prm.SetHeaderCallback(func(o *object.Object) {
|
||||
p.Start()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue