linter fixes

This commit is contained in:
ston1th 2021-11-07 13:30:22 +01:00
commit df5babf6c8
15 changed files with 49 additions and 55 deletions

View file

@ -217,15 +217,11 @@ func (c *Cluster) Stop() {
}
func (c *Cluster) leader(ctx context.Context) {
defer func() {
util.HandleCrash()
}()
defer util.HandleCrash()
c.callbacks.Leader(ctx, c)
}
func (c *Cluster) follower(ctx context.Context) {
defer func() {
util.HandleCrash()
}()
defer util.HandleCrash()
c.callbacks.Follower(ctx, c)
}