Skip to content

Commit

Permalink
contextの名前を変える
Browse files Browse the repository at this point in the history
  • Loading branch information
Azuki-bar committed Nov 21, 2023
1 parent 236570f commit a9d752e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/state-manager/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func main() {
}
baseCtx, cancel := context.WithCancel(context.Background())
defer cancel()
signalCtx, stop := signal.NotifyContext(baseCtx, os.Interrupt)
ctx, stop := signal.NotifyContext(baseCtx, os.Interrupt)
defer stop()
go func() {
<-ctx.Done()
Expand Down Expand Up @@ -171,7 +171,7 @@ func main() {
//go operation.Handler()
eg.Go(func() error {
slog.Default().Info("start mqtt handler")
err := mqtt_handler.StartHandler(ctx)
err := mqttHandler.Start(ctx)
return fmt.Errorf("mqtt handler error: %w", err)
})

Expand Down

0 comments on commit a9d752e

Please sign in to comment.