mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-06-06 18:31:05 +00:00
refresh every 10 mins
This commit is contained in:
parent
afd0f8f566
commit
61554badfc
2
main.go
2
main.go
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user