Fix portal_content_keys_offered metric regression (#1057)

This commit is contained in:
Kim De Mey 2022-04-12 10:59:41 +02:00 committed by GitHub
parent ed38ed494f
commit 0195d5830b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -649,6 +649,7 @@ proc offer(p: PortalProtocol, o: OfferRequest):
## by the cleanup process before it will be transferred, so this way does not
## guarantee content transfer.
let contentKeys = getContentKeys(o)
portal_content_keys_offered.observe(contentKeys.len().int64)
let acceptMessageResponse = await p.offerImpl(o.dst, contentKeys)