Skip to content

Commit

Permalink
Don't want zaddnx -- want zadd.
Browse files Browse the repository at this point in the history
  • Loading branch information
mishan committed Nov 16, 2016
1 parent e57fd61 commit ffa64f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redecs_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var redisClient *redis.Client
func reportServiceActive(serviceName string) {
log.Debug("Reporting " + serviceName + " as active with IP " + configuration.LocalIp)
// write {timestamp => SERVICENAME_IP} to ecssd:service_pings
redisClient.ZAddNX("redecs:service_pings", redis.Z{float64(time.Now().Unix()), serviceName + "_" + configuration.LocalIp})
redisClient.ZAdd("redecs:service_pings", redis.Z{float64(time.Now().Unix()), serviceName + "_" + configuration.LocalIp})
}

func getServiceName(container *docker.Container) string {
Expand Down

0 comments on commit ffa64f2

Please sign in to comment.