Skip to content

Commit

Permalink
add ttl when creating peer to expire the cache
Browse files Browse the repository at this point in the history
Signed-off-by: Ashraf Fouda <[email protected]>
  • Loading branch information
ashraffouda committed Dec 18, 2024
1 parent 75bdc74 commit 23f5f17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmds/modules/api_gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func action(cli *cli.Context) error {
router.Serve,
peer.WithKeyType(peer.KeyTypeEd25519),
peer.WithRelay(environment.MustGet().RelayURL...),
peer.WithInMemoryExpiration(6*60*60), // 6 hours
)
if err != nil {
return fmt.Errorf("failed to start a new rmb peer: %w", err)
Expand Down

0 comments on commit 23f5f17

Please sign in to comment.