From c8cb58dac3433cc2540e1b92f6dc2d57fb025b23 Mon Sep 17 00:00:00 2001 From: Brandon Berhent Date: Tue, 23 Aug 2022 16:35:07 -0400 Subject: [PATCH] Fix tests --- server/db/redis.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/db/redis.go b/server/db/redis.go index 0eb9141..2a506ce 100644 --- a/server/db/redis.go +++ b/server/db/redis.go @@ -229,7 +229,7 @@ func (r *redisManager) UpdateStatsAddress(address string) { count = existingInt + 1 } } - err = r.hset(key, address, string(count)) + err = r.hset(key, address, strconv.Itoa(count)) if err != nil { glog.Errorf("Error updating StatesAddresses %s", err) } @@ -259,7 +259,7 @@ func (r *redisManager) UpdateStatsDate(address string) { count = existingInt + 1 } } - err = r.hset(key, fmt.Sprintf("%s_%s", dateStr, address), string(count)) + err = r.hset(key, fmt.Sprintf("%s_%s", dateStr, address), strconv.Itoa(count)) if err != nil { glog.Errorf("Error updating StatsDate %s", err) } @@ -362,7 +362,7 @@ func (r *redisManager) UpdateStatsClient(ip string) { count = existingInt + 1 } } - err = r.hset(key, hashed, string(count)) + err = r.hset(key, hashed, strconv.Itoa(count)) if err != nil { glog.Errorf("Error updating StatsClient %s", err) }