Skip to content

Commit

Permalink
renaming & typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SionoiS committed Jan 23, 2025
1 parent 925f40c commit 1314372
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions waku/waku_store_sync/reconciliation.nim
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ type SyncReconciliation* = ref object of LPProtocol
idsRx: AsyncQueue[ID]

# Send Hashes to transfer protocol for reception
wantsTx: AsyncQueue[(PeerId, Fingerprint)]
localWantsTx: AsyncQueue[(PeerId, Fingerprint)]

# Send Hashes to transfer protocol for transmission
needsTx: AsyncQueue[(PeerId, Fingerprint)]
remoteNeedsTx: AsyncQueue[(PeerId, Fingerprint)]

# params
syncInterval: timer.Duration # Time between each syncronisation attempt
syncInterval: timer.Duration # Time between each synchronization attempt
syncRange: timer.Duration # Amount of time in the past to sync
relayJitter: Duration # Amount of time since the present to ignore when syncing

Expand Down Expand Up @@ -114,7 +114,7 @@ proc processRequest(
let sendPayload = self.storage.processPayload(recvPayload, hashToSend, hashToRecv)

for hash in hashToSend:
await self.needsTx.addLast((conn.peerId, hash))
await self.remoteNeedsTx.addLast((conn.peerId, hash))

for hash in hashToRecv:
await self.wantstx.addLast((conn.peerId, hash))
Expand Down Expand Up @@ -258,8 +258,8 @@ proc new*(
syncInterval: timer.Duration = DefaultSyncInterval,
relayJitter: timer.Duration = DefaultGossipSubJitter,
idsRx: AsyncQueue[ID],
wantsTx: AsyncQueue[(PeerId, Fingerprint)],
needsTx: AsyncQueue[(PeerId, Fingerprint)],
localWantsTx: AsyncQueue[(PeerId, Fingerprint)],
remoteNeedsTx: AsyncQueue[(PeerId, Fingerprint)],
): Future[Result[T, string]] {.async.} =
let res = await initFillStorage(syncRange, wakuArchive)
let storage =
Expand All @@ -276,8 +276,8 @@ proc new*(
syncInterval: syncInterval,
relayJitter: relayJitter,
idsRx: idsRx,
wantsTx: wantsTx,
needsTx: needsTx,
localWantsTx: localWantsTx,
remoteNeedsTx: remoteNeedsTx,
)

let handler = proc(conn: Connection, proto: string) {.async, closure.} =
Expand Down

0 comments on commit 1314372

Please sign in to comment.