Skip to content

Commit

Permalink
Remove now inits peers if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed May 23, 2019
1 parent 82209d3 commit 2ce33c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions groupcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ func (g *Group) Get(ctx Context, key string, dest Sink) error {
// Remove clears the key from our cache then forwards the remove
// request to all peers.
func (g *Group) Remove(ctx Context, key string) error {
g.peersOnce.Do(g.initPeers)

_, err := g.removeGroup.Do(key, func() (interface{}, error) {

// Remove from key owner first
Expand Down

0 comments on commit 2ce33c3

Please sign in to comment.