We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e57fd61 commit ffa64f2Copy full SHA for ffa64f2
redecs_agent.go
@@ -47,7 +47,7 @@ var redisClient *redis.Client
47
func reportServiceActive(serviceName string) {
48
log.Debug("Reporting " + serviceName + " as active with IP " + configuration.LocalIp)
49
// write {timestamp => SERVICENAME_IP} to ecssd:service_pings
50
- 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})
51
}
52
53
func getServiceName(container *docker.Container) string {
0 commit comments