cloud functions - 60 second context deadline

This commit is contained in:
justinschuldt 2022-03-14 14:06:11 -05:00 committed by Justin Schuldt
parent d95e82b00b
commit b2d1ea3e72
3 changed files with 3 additions and 3 deletions

View File

@ -401,7 +401,7 @@ func NotionalTransferred(w http.ResponseWriter, r *http.Request) {
} }
} }
ctx, cancel := context.WithTimeout(context.Background(), 600*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel() defer cancel()
var wg sync.WaitGroup var wg sync.WaitGroup

View File

@ -260,7 +260,7 @@ func TvlCumulative(w http.ResponseWriter, r *http.Request) {
} }
} }
ctx, cancel := context.WithTimeout(context.Background(), 600*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel() defer cancel()
dailyTvl := map[string]map[string]map[string]LockedAsset{} dailyTvl := map[string]map[string]map[string]LockedAsset{}

View File

@ -336,7 +336,7 @@ func TVL(w http.ResponseWriter, r *http.Request) {
return return
} }
ctx, cancel := context.WithTimeout(context.Background(), 600*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel() defer cancel()
getNotionalAmounts := func(ctx context.Context, tokensLocked map[string]map[string]LockedAsset) map[string]map[string]LockedAsset { getNotionalAmounts := func(ctx context.Context, tokensLocked map[string]map[string]LockedAsset) map[string]map[string]LockedAsset {