Skip to content

Commit

Permalink
Method name optimization (#3068)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhengfa authored Jun 15, 2020
1 parent 4c0ba56 commit ee8da9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public String serviceStatus(HttpServletRequest request) throws Exception {
Loggers.SRV_LOG.debug("checksum of {} is not consistent, remote: {}, checksum: {}, local: {}",
serviceName, serverIp, checksum, service.getChecksum());
}
serviceManager.addUpdatedService2Queue(checksums.namespaceId, serviceName, serverIp, checksum);
serviceManager.addUpdatedServiceToQueue(checksums.namespaceId, serviceName, serverIp, checksum);
}
}
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public Map<String, Service> chooseServiceMap(String namespaceId) {
return serviceMap.get(namespaceId);
}

public void addUpdatedService2Queue(String namespaceId, String serviceName, String serverIP, String checksum) {
public void addUpdatedServiceToQueue(String namespaceId, String serviceName, String serverIP, String checksum) {
lock.lock();
try {
toBeUpdatedServicesQueue.offer(new ServiceKey(namespaceId, serviceName, serverIP, checksum), 5, TimeUnit.MILLISECONDS);
Expand Down

0 comments on commit ee8da9b

Please sign in to comment.