mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-07 20:08:17 +02:00
fix lint errors (#1171)
This commit is contained in:
parent
aa8ba35332
commit
aab9ec413e
2 changed files with 5 additions and 5 deletions
|
@ -11,11 +11,9 @@ const (
|
||||||
ServiceAuthenticate = "authenticate"
|
ServiceAuthenticate = "authenticate"
|
||||||
// ServiceCache represents running the cache service component
|
// ServiceCache represents running the cache service component
|
||||||
ServiceCache = "cache"
|
ServiceCache = "cache"
|
||||||
|
// StorageRedisName is the name of the redis storage backend
|
||||||
// RedisName is the name of the redis storage backend
|
|
||||||
StorageRedisName = "redis"
|
StorageRedisName = "redis"
|
||||||
|
// StorageInMemoryName is the name of the in-memory storage backend
|
||||||
// InMemoryName is the name of the in-memory storage backend
|
|
||||||
StorageInMemoryName = "memory"
|
StorageInMemoryName = "memory"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,9 @@ func (db *DB) ClearDeleted(ctx context.Context, cutoff time.Time) {
|
||||||
_, span := trace.StartSpan(ctx, "databroker.redis.ClearDeleted")
|
_, span := trace.StartSpan(ctx, "databroker.redis.ClearDeleted")
|
||||||
defer span.End()
|
defer span.End()
|
||||||
var opErr error
|
var opErr error
|
||||||
defer recordOperation(ctx, time.Now(), "clear_deleted", opErr)
|
defer func(startTime time.Time) {
|
||||||
|
recordOperation(ctx, startTime, "clear_deleted", opErr)
|
||||||
|
}(time.Now())
|
||||||
defer c.Close()
|
defer c.Close()
|
||||||
|
|
||||||
ids, _ := redis.Strings(c.Do("SMEMBERS", db.deletedSet))
|
ids, _ := redis.Strings(c.Do("SMEMBERS", db.deletedSet))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue