refresh every 10 mins

This commit is contained in:
Barry Deen 2024-09-06 13:30:29 -04:00
parent afd0f8f566
commit 61554badfc

View File

@ -114,7 +114,7 @@ func getEnv(key string) string {
func refreshTrustNetwork(relay *khatru.Relay) []string { func refreshTrustNetwork(relay *khatru.Relay) []string {
ctx := context.Background() ctx := context.Background()
ticker := time.NewTicker(1 * time.Hour) ticker := time.NewTicker(10 * time.Minute)
for range ticker.C { for range ticker.C {
timeoutCtx, cancel := context.WithTimeout(ctx, 1*time.Second) timeoutCtx, cancel := context.WithTimeout(ctx, 1*time.Second)