Skip to content

Commit f96cc59

Browse files
authored
Merge branch 'fix--wait-time-cap' into fix--wait-time-cap-retry-order
2 parents 97ae4df + de85173 commit f96cc59

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libp2p/protocols/service_discovery/registrar.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ proc pruneExpiredEntries[K](
101101
bounds.del(k)
102102

103103
proc pruneExpiredAds*(registrar: Registrar, advertExpiry: Duration) =
104-
let now = Moment.now()
104+
#Always use seconds granularity
105+
let now = Moment.init(Moment.now().epochSeconds, Second)
105106

106107
var expiredCount = 0
107108

0 commit comments

Comments
 (0)