linter fixes
This commit is contained in:
parent
4bf887e75f
commit
df5babf6c8
15 changed files with 49 additions and 55 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue