Make lint happy
This commit is contained in:
1 parent
42fa953053
commit
3bdfa9b050
2 files changed
+14
-11
No files matched your search
+2
-2
@@ -371,7 +371,7 @@ func (c *Cache) Len() int {
|
||||
}
|
||||
|
||||
// Return the max capacity
|
||||
func (c Cache) Capacity() int {
|
||||
func (c *Cache) Capacity() int {
|
||||
c.lock.RLock()
|
||||
defer c.lock.RUnlock()
|
||||
|
||||
@@ -379,7 +379,7 @@ func (c Cache) Capacity() int {
|
||||
}
|
||||
|
||||
// Return the max capacity
|
||||
func (c Cache) String() string {
|
||||
func (c *Cache) String() string {
|
||||
c.lock.RLock()
|
||||
defer c.lock.RUnlock()
|
||||
|
||||
|
||||
Reference in new issue
Block a user