@cryptotaxi247 / kubo / commits / 0676a9b10

fix(gcr/s) defer log event

Brian Tiger Chow committed Feb 2, 2015 at 06:09 UTC 0676a9b10b7850739eb38e04c70a308b6359ecf9
1 file changed +1 -1
routing/grandcentral/server.go
+1 -1
@@ -42,7 +42,7 @@ func (s *Server) HandleRequest(ctx context.Context, p peer.ID, req *dhtpb.Messag
42 func (s *Server) handleMessage(
43 ctx context.Context, p peer.ID, req *dhtpb.Message) (peer.ID, *dhtpb.Message) {
44
45 - log.EventBegin(ctx, "routingMessageReceived", req, p, s.local).Done() // TODO may need to differentiate between local and remote
45 + defer log.EventBegin(ctx, "routingMessageReceived", req, p, s.local).Done() // TODO may need to differentiate between local and remote
46
47 var response = dhtpb.NewMessage(req.GetType(), req.GetKey(), req.GetClusterLevel())
48 switch req.GetType() {