this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a configurable identity cache size to the relay (#754)

authored by

Jaz and committed by
GitHub
58e6cb48 5ea12810

+6 -1
+6 -1
cmd/bigsky/main.go
··· 183 183 EnvVars: []string{"RELAY_MAX_QUEUE_PER_PDS"}, 184 184 Value: 1_000, 185 185 }, 186 + &cli.IntFlag{ 187 + Name: "did-cache-size", 188 + EnvVars: []string{"RELAY_DID_CACHE_SIZE"}, 189 + Value: 5_000_000, 190 + }, 186 191 } 187 192 188 193 app.Action = runBigsky ··· 312 317 } 313 318 mr.AddHandler("web", &webr) 314 319 315 - cachedidr := plc.NewCachingDidResolver(mr, time.Hour*24, 500_000) 320 + cachedidr := plc.NewCachingDidResolver(mr, time.Hour*24, cctx.Int("did-cache-size")) 316 321 317 322 kmgr := indexer.NewKeyManager(cachedidr, nil) 318 323