Bump chronos. (#5281)

Add current/last connection query to the connection information.
This commit is contained in:
Eugene Kabanov 2023-08-15 14:14:34 +03:00 committed by GitHub
parent af37a96dbd
commit 255131d331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -71,6 +71,7 @@ type
RestConnectionInfo* = object RestConnectionInfo* = object
handle*: string handle*: string
query*: string
connection_type*: string connection_type*: string
connection_state*: string connection_state*: string
remote_address*: string remote_address*: string
@ -341,6 +342,7 @@ proc installNimbusApiHandlers*(router: var RestRouter, node: BeaconNode) =
"not available" "not available"
else: else:
$connection.remoteAddress.get() $connection.remoteAddress.get()
query = connection.query.get("not available")
handle = Base10.toString(uint64(connection.handle)) handle = Base10.toString(uint64(connection.handle))
moment = Moment.now() moment = Moment.now()
sinceAccept = $(moment - connection.acceptMoment) sinceAccept = $(moment - connection.acceptMoment)
@ -353,6 +355,7 @@ proc installNimbusApiHandlers*(router: var RestRouter, node: BeaconNode) =
res.add( res.add(
RestConnectionInfo( RestConnectionInfo(
handle: handle, handle: handle,
query: query,
connection_state: connectionState, connection_state: connectionState,
connection_type: connectionType, connection_type: connectionType,
local_address: localAddress, local_address: localAddress,

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit 6b4f5a1d23b1583b2b0ccee409e2e7c6dc6fff93 Subproject commit 6c2ea675123ed0bf5c5d76c92ed4985bacd1a9ec