Skip to content

Commit

Permalink
fix: update log message formatting and redis config formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Dec 22, 2024
1 parent 32aa8d0 commit 41a5465
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion api/v1/nodes/nodeLogs/node.logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func LogNodeStatus(peerID string, status string) error {

// If status in Redis already matches, just update the Redis cache timestamp
if err == nil && cachedStatus == status {
log.Info("Data alread exists", peerID, status)
log.Info("Data alread exists : ", peerID, status)
// Reset the cache expiration time
RedisClient.Set(Ctx, cacheKey, status, time.Hour*1)
return nil
Expand Down
3 changes: 0 additions & 3 deletions config/redisconfig/redis.config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package redisconfig
import (
"context"
"encoding/base64"
"fmt"
"os"

"github.com/redis/go-redis/v9"
Expand All @@ -28,8 +27,6 @@ func ConnectRedis() *redis.Client {
address = DecodeB64("MzUuMjA5LjE5OC4xNjo2Mzc5")
// password = DecodeB64("STkwNjFVNjI4NlFKQ1BOME0=")
password = "I9061U6286QJCPN0M"

fmt.Printf("address : %v and password : %v \n", address, password)
}
testAddress = address
testPassword = password
Expand Down

0 comments on commit 41a5465

Please sign in to comment.