From 9e815e53b48450c8f7d1439c82dda7608ece5dfd Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Wed, 14 Dec 2016 09:46:36 +0000 Subject: [PATCH] fetchLocksToCache -> refreshLockCache --- locking/locks.go | 2 +- locking/locks_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locking/locks.go b/locking/locks.go index 12f947c9..e1dd8ac2 100644 --- a/locking/locks.go +++ b/locking/locks.go @@ -250,7 +250,7 @@ func (c *Client) lockIdFromPath(path string) (string, error) { // Fetch locked files for the current committer and cache them locally // This can be used to sync up locked files when moving machines -func (c *Client) fetchLocksToCache() error { +func (c *Client) refreshLockCache() error { // TODO: filters don't seem to currently define how to search for a // committer's email. Is it "committer.email"? For now, just iterate locks, err := c.SearchLocks(nil, 0, false) diff --git a/locking/locks_test.go b/locking/locks_test.go index fe802a24..a5f8d7f2 100644 --- a/locking/locks_test.go +++ b/locking/locks_test.go @@ -79,7 +79,7 @@ func TestRefreshCache(t *testing.T) { assert.Empty(t, locks) // Should load from test data, just Fred's - err = client.fetchLocksToCache() + err = client.refreshLockCache() assert.Nil(t, err) locks, err = client.SearchLocks(nil, 0, true)