From 5b4a42f77651a5a44b202e13e3c09122d36de78c Mon Sep 17 00:00:00 2001 From: Ashraf Fouda Date: Tue, 31 Mar 2026 16:17:41 +0200 Subject: [PATCH] reduce cache ttl for peer to 1h Signed-off-by: Ashraf Fouda --- cmds/modules/api_gateway/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/modules/api_gateway/main.go b/cmds/modules/api_gateway/main.go index 8ecb1eee..8ee081bc 100644 --- a/cmds/modules/api_gateway/main.go +++ b/cmds/modules/api_gateway/main.go @@ -121,7 +121,7 @@ func action(cli *cli.Context) error { router.Serve, peer.WithKeyType(peer.KeyTypeEd25519), peer.WithRelay(relayURLs...), - peer.WithInMemoryExpiration(6*60*60), // 6 hours + peer.WithInMemoryExpiration(6*60), // 1 hours ) if err != nil { if cancel != nil {