diff --git a/common/lockmanager.go b/common/lockmanager.go index 95982452..5dee90ea 100644 --- a/common/lockmanager.go +++ b/common/lockmanager.go @@ -58,7 +58,6 @@ func Unlock(key string) error { lock.timestamp = time.Now(); lock.mutex.Unlock(); return nil; - } func removeStaleLocks() { diff --git a/common/lockmanager_test.go b/common/lockmanager_test.go index 2774e80b..1bfb5ae3 100644 --- a/common/lockmanager_test.go +++ b/common/lockmanager_test.go @@ -13,7 +13,7 @@ var ( ) -func TestLock(t *testing.T) { +func testLock(t *testing.T) { var wg sync.WaitGroup Lock(key) diff --git a/config/options.go b/config/options.go index a8058654..040e4ec4 100644 --- a/config/options.go +++ b/config/options.go @@ -46,5 +46,5 @@ var ( DB_TYPE = MustNewStringOption("db.type", "disk", "The type of database to use."); DB_PG_URI = MustNewStringOption("db.pg.uri", "", "Connection string to connect to a Postgres Databse. Empty if not using Postgres."); - STALELOCK_DURATION = MustNewIntOption("stale.duration", 5, "Amount of time a Lock can be unused before getting removed"); + STALELOCK_DURATION = MustNewIntOption("stale.duration", 5, "Amount of time a lock can be unused before getting removed"); )