Fix missing std/times import for the metrics 0.0.1 case (#656)

This commit is contained in:
Kim De Mey 2024-01-12 17:35:14 +01:00 committed by GitHub
parent 11049fb87d
commit a6942e3a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -718,6 +718,8 @@ when defined(metrics):
timestamp = timestamp,
)
else: # nim-metrics 0.0.1
import std/times
method collect*(collector: Sqlite3Info): Metrics =
result = initOrderedTable[Labels, seq[Metric]]()
result[@[]] = @[]