Skip to content

Commit

Permalink
feat: Added flexible rate limit checks for store, legacy store and li…
Browse files Browse the repository at this point in the history
…ghtpush (#2668)

* Added flexible rate limit checks for store, legacy store and lightpush. Also added rate and traffic metrics.

* Fix chat2 after WakuLegacyStoreCodec rename

* Update waku/common/ratelimit.nim

Co-authored-by: Ivan FB <[email protected]>

* Update waku/common/ratelimit.nim

Co-authored-by: Ivan FB <[email protected]>

* Update waku/waku_store_legacy/protocol.nim

Co-authored-by: Ivan FB <[email protected]>

* Fix review findings, added limit to debug logs

---------

Co-authored-by: Ivan FB <[email protected]>
  • Loading branch information
NagyZoltanPeter and Ivansete-status committed May 14, 2024
1 parent e290a52 commit 4936df6
Show file tree
Hide file tree
Showing 14 changed files with 529 additions and 420 deletions.
2 changes: 1 addition & 1 deletion apps/chat2/chat2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ proc processInput(rfd: AsyncFD, rng: ref HmacDrbgContext) {.async.} =
echo "Connecting to storenode: " & $(storenode.get())

node.mountLegacyStoreClient()
node.peerManager.addServicePeer(storenode.get(), WakuStoreCodec)
node.peerManager.addServicePeer(storenode.get(), WakuLegacyStoreCodec)

proc storeHandler(response: HistoryResponse) {.gcsafe.} =
for msg in response.messages:
Expand Down
Loading

0 comments on commit 4936df6

Please sign in to comment.