Skip to content

Commit

Permalink
Remove un-used stopping function
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Reid committed Oct 21, 2021
1 parent 8d1c167 commit 4bbe2b2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ring/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func NewWithStoreClientAndStrategy(cfg Config, name, key string, store kv.Client
logger: logger,
}

r.Service = services.NewBasicService(r.starting, r.loop, r.stopping).WithName(fmt.Sprintf("%s ring client", name))
r.Service = services.NewBasicService(r.starting, r.loop, nil).WithName(fmt.Sprintf("%s ring client", name))
return r, nil
}

Expand Down Expand Up @@ -313,10 +313,6 @@ func (r *Ring) loop(ctx context.Context) error {
return nil
}

func (r *Ring) stopping(_ error) error {
return nil
}

func (r *Ring) updateRingState(ringDesc *Desc) {
r.mtx.RLock()
prevRing := r.ringDesc
Expand Down

0 comments on commit 4bbe2b2

Please sign in to comment.