mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
Update init config.
This commit is contained in:
parent
24d9cdb7a9
commit
7a37a08cf5
@ -484,7 +484,6 @@ proc handleFindContent(
|
||||
int64(logDistance), labelValues = [$p.protocolId]
|
||||
)
|
||||
|
||||
# Check first if content is in range, as this is a cheaper operation
|
||||
let contentResult = p.getLocalContent(fc.contentKey, contentId)
|
||||
if contentResult.isOk():
|
||||
let content = contentResult.get()
|
||||
@ -657,7 +656,7 @@ proc new*(
|
||||
radiusCache: RadiusCache.init(256),
|
||||
offerQueue: newAsyncQueue[OfferRequest](concurrentOffers),
|
||||
offerCache:
|
||||
OfferCache.init(if config.disableContentCache: 0 else: config.contentCacheSize),
|
||||
OfferCache.init(if config.disableOfferCache: 0 else: config.offerCacheSize),
|
||||
pingTimings: Table[NodeId, chronos.Moment](),
|
||||
config: config,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user