Skip to content

Commit 58e65dc

Browse files
committed
test: tokenLock queries
Signed-off-by: ADIR <[email protected]>
1 parent e7b0d5b commit 58e65dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

token/services/db/sql/postgres/tokenlock.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewTokenLockStore(dbs *common2.RWDB, tableNames common.TableNames) (*TokenL
4040
}
4141

4242
func (db *TokenLockStore) Cleanup(ctx context.Context, leaseExpiry time.Duration) error {
43-
_, err := db.LogStaleLocks(ctx, leaseExpiry)
43+
_, err := db.logStaleLocks(ctx, leaseExpiry)
4444
if err != nil {
4545
db.Logger.Warnf("Could not log stale locks: %v", err)
4646
}
@@ -64,7 +64,7 @@ func (db *TokenLockStore) Cleanup(ctx context.Context, leaseExpiry time.Duration
6464
return err
6565
}
6666

67-
func (db *TokenLockStore) LogStaleLocks(ctx context.Context, leaseExpiry time.Duration) ([]LockEntry, error) {
67+
func (db *TokenLockStore) logStaleLocks(ctx context.Context, leaseExpiry time.Duration) ([]LockEntry, error) {
6868
if !db.Logger.IsEnabledFor(zapcore.InfoLevel) {
6969
return nil, nil
7070
}

0 commit comments

Comments
 (0)