Skip to content

Commit

Permalink
fix: lint 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinezAvellan committed Nov 18, 2024
1 parent 7013ca2 commit 1e7f12e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/mredis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/redis/go-redis/v9"
)

const REDIS_TTL = 300
const RedisTTL = 300

// RedisConnection is a hub which deal with redis connections.
type RedisConnection struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func (rr *RedisConsumerRepository) Set(ctx context.Context, key, value string, t
}

if ttl <= 0 {
ttl = mredis.REDIS_TTL
ttl = mredis.RedisTTL
}

logger.Infof("value of ttl: %v", ttl)

statusCMD := rds.Set(ctx, key, value, ttl)
Expand All @@ -56,11 +57,9 @@ func (rr *RedisConsumerRepository) Set(ctx context.Context, key, value string, t
}

func (rr *RedisConsumerRepository) Get(ctx context.Context, key string) error {

return nil
}

func (rr *RedisConsumerRepository) Del(ctx context.Context, key string) error {

return nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func (rr *RedisConsumerRepository) Set(ctx context.Context, key, value string, t
}

if ttl <= 0 {
ttl = mredis.REDIS_TTL
ttl = mredis.RedisTTL
}

logger.Infof("value of ttl: %v", ttl)

statusCMD := rds.Set(ctx, key, value, ttl)
Expand All @@ -56,11 +57,9 @@ func (rr *RedisConsumerRepository) Set(ctx context.Context, key, value string, t
}

func (rr *RedisConsumerRepository) Get(ctx context.Context, key string) error {

return nil
}

func (rr *RedisConsumerRepository) Del(ctx context.Context, key string) error {

return nil
}

0 comments on commit 1e7f12e

Please sign in to comment.