Skip to content

Commit ffa64f2

Browse files
committed
Don't want zaddnx -- want zadd.
1 parent e57fd61 commit ffa64f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redecs_agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var redisClient *redis.Client
4747
func reportServiceActive(serviceName string) {
4848
log.Debug("Reporting " + serviceName + " as active with IP " + configuration.LocalIp)
4949
// write {timestamp => SERVICENAME_IP} to ecssd:service_pings
50-
redisClient.ZAddNX("redecs:service_pings", redis.Z{float64(time.Now().Unix()), serviceName + "_" + configuration.LocalIp})
50+
redisClient.ZAdd("redecs:service_pings", redis.Z{float64(time.Now().Unix()), serviceName + "_" + configuration.LocalIp})
5151
}
5252

5353
func getServiceName(container *docker.Container) string {

0 commit comments

Comments
 (0)