aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-19 18:24:11 +0900
committerOphestra <cat@gensokyo.uk>2026-04-19 18:24:11 +0900
commit753432cf09ac81fbfd9b5357ba6112f0d027c55d (patch)
treec9ef6cee4064ae26009f5f002ea8afd8acfeec21 /cmd/mbf/main.go
parentf8902e3679f98356d2e2e01fce9a8bad56c76db8 (diff)
cmd/mbf: optionally wait for cancel
Synchronisation is not needed here during interactive use. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index cbb6f7b2..b8516baa 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -489,7 +489,7 @@ func main() {
cc, cancel := context.WithDeadline(context.Background(), daemonDeadline())
defer cancel()
- if _err := cancelRemote(cc, &addr, a); _err != nil {
+ if _err := cancelRemote(cc, &addr, a, false); _err != nil {
log.Println(err)
}
}
@@ -523,7 +523,7 @@ func main() {
c.NewCommand(
"abort",
"Abort all pending cures on the daemon",
- func([]string) error { return abortRemote(ctx, &addr) },
+ func([]string) error { return abortRemote(ctx, &addr, false) },
)
{