jasononion commented on a change in pull request #874:
URL:
https://github.com/apache/servicecomb-service-center/pull/874#discussion_r583407670
##########
File path: datasource/mongo/heartbeat/cache/heartbeatcache.go
##########
@@ -91,6 +96,13 @@ func notInCacheStrategy(ctx context.Context, request
*pb.HeartbeatRequest) (*pb.
return resp, err
}
interval, times := instance.Instance.HealthCheck.Interval,
instance.Instance.HealthCheck.Times
+ // Set the range of interval and time
+ if interval > 60 || interval < 0 {
Review comment:
60定义个常量
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]