revert timer removal
This commit is contained in:
parent
5d748767e9
commit
4f27f075d7
@ -2382,12 +2382,12 @@ pub fn processJsonRpc(server: *Server, writer: anytype, json: []const u8) !void
|
|||||||
.shutdown => return try sendErrorResponse(writer, server.arena.allocator(), .InvalidRequest, "server received a request after shutdown!"),
|
.shutdown => return try sendErrorResponse(writer, server.arena.allocator(), .InvalidRequest, "server received a request after shutdown!"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// const start_time = std.time.milliTimestamp();
|
const start_time = std.time.milliTimestamp();
|
||||||
defer {
|
defer {
|
||||||
// makes `zig build test` look nice
|
// makes `zig build test` look nice
|
||||||
if (!zig_builtin.is_test and !std.mem.eql(u8, method, "shutdown")) {
|
if (!zig_builtin.is_test and !std.mem.eql(u8, method, "shutdown")) {
|
||||||
// const end_time = std.time.milliTimestamp();
|
const end_time = std.time.milliTimestamp();
|
||||||
// log.debug("Took {}ms to process method {s}", .{ end_time - start_time, method });
|
log.debug("Took {}ms to process method {s}", .{ end_time - start_time, method });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user