From 5ca0302bbe5525029d63590b4e89d531655fbbbe Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 19 Jul 2018 18:14:16 -0700 Subject: [PATCH] flush pins in the pin update command fixes #5264 License: MIT Signed-off-by: Steven Allen --- core/commands/pin.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/commands/pin.go b/core/commands/pin.go index d97e9aac5..5bfe75bb8 100644 --- a/core/commands/pin.go +++ b/core/commands/pin.go @@ -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{