Closed andyxinyuwu closed 9 years ago
reviewers: @Raynos @leizha #summoning
@andycmu Left review feedback.
@Raynos changed codes according to the comments.
@Raynos deleted duplicate increment and counter.
lgtm. Let's cut a new minor version and then publish.
In order to ensure statsd before server crashes, we can take advantage of socket.send of udp socket. The callback function is called when the messages was sent. I made such changes: Add a callback function field in _writeToSocket in EphemeralSocket.js Add two function to increment immediately in statsd-client.js Thanks.