From 255131d331048338f67f9fc600e12fa455fe9a69 Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Tue, 15 Aug 2023 14:14:34 +0300 Subject: [PATCH] Bump chronos. (#5281) Add current/last connection query to the connection information. --- beacon_chain/rpc/rest_nimbus_api.nim | 3 +++ vendor/nim-chronos | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/beacon_chain/rpc/rest_nimbus_api.nim b/beacon_chain/rpc/rest_nimbus_api.nim index fbdd9f92d..38a006871 100644 --- a/beacon_chain/rpc/rest_nimbus_api.nim +++ b/beacon_chain/rpc/rest_nimbus_api.nim @@ -71,6 +71,7 @@ type RestConnectionInfo* = object handle*: string + query*: string connection_type*: string connection_state*: string remote_address*: string @@ -341,6 +342,7 @@ proc installNimbusApiHandlers*(router: var RestRouter, node: BeaconNode) = "not available" else: $connection.remoteAddress.get() + query = connection.query.get("not available") handle = Base10.toString(uint64(connection.handle)) moment = Moment.now() sinceAccept = $(moment - connection.acceptMoment) @@ -353,6 +355,7 @@ proc installNimbusApiHandlers*(router: var RestRouter, node: BeaconNode) = res.add( RestConnectionInfo( handle: handle, + query: query, connection_state: connectionState, connection_type: connectionType, local_address: localAddress, diff --git a/vendor/nim-chronos b/vendor/nim-chronos index 6b4f5a1d2..6c2ea6751 160000 --- a/vendor/nim-chronos +++ b/vendor/nim-chronos @@ -1 +1 @@ -Subproject commit 6b4f5a1d23b1583b2b0ccee409e2e7c6dc6fff93 +Subproject commit 6c2ea675123ed0bf5c5d76c92ed4985bacd1a9ec