Skip to content

Commit

Permalink
Stop now has no return value
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Oct 18, 2023
1 parent 3b38ac0 commit 4fc90cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/node/peering.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ func Peering(lc fx.Lifecycle, host host.Host) *peering.PeeringService {
return ps.Start()
},
OnStop: func(context.Context) error {
return ps.Stop()
ps.Stop()
return nil
},
})
return ps
Expand Down

0 comments on commit 4fc90cc

Please sign in to comment.