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) }