Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Berhent committed Aug 23, 2022
1 parent 1a82535 commit c8cb58d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/db/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit c8cb58d

Please sign in to comment.