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 authored May 9, 2024
1 parent fa26d05 commit 026d804
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 026d804

Please sign in to comment.