Created
September 17, 2014 16:36
-
-
Save anandkunal/e2a4e5674d3abc180fb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (r *RPC) Clear(skip bool, ack *bool) error { | |
r.mu.Lock() | |
defer r.mu.Unlock() | |
r.cache = make(map[string]string) | |
*ack = true | |
r.requests.Clear++ | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment