mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 03:47:45 +08:00
flush pins in the pin update command
fixes #5264 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
82e006ead1
commit
5ca0302bbe
@ -411,6 +411,12 @@ new pin and removing the old one.
|
||||
return
|
||||
}
|
||||
|
||||
err = n.Pinning.Flush()
|
||||
if err != nil {
|
||||
res.SetError(err, cmdkit.ErrNormal)
|
||||
return
|
||||
}
|
||||
|
||||
res.SetOutput(&PinOutput{Pins: []string{from.String(), to.String()}})
|
||||
},
|
||||
Marshalers: cmds.MarshalerMap{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user