File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -230,27 +230,27 @@ func (c *HTTPClient) CacheGetKeyWithContext(ctx context.Context, keyID string) (
230230 if c .KeyFolder == "" {
231231 return nil , fmt .Errorf ("no folder set for cached key" )
232232 }
233-
233+
234234 // Check context before file operations
235235 select {
236236 case <- ctx .Done ():
237237 return nil , ctx .Err ()
238238 default :
239239 }
240-
240+
241241 keyPath := path .Join (c .KeyFolder , keyID )
242242 b , err := os .ReadFile (keyPath )
243243 if err != nil {
244244 return nil , err
245245 }
246-
246+
247247 // Check context after file read but before JSON unmarshal
248248 select {
249249 case <- ctx .Done ():
250250 return nil , ctx .Err ()
251251 default :
252252 }
253-
253+
254254 k := Key {Path : keyPath }
255255 err = json .Unmarshal (b , & k )
256256 if err != nil {
@@ -603,7 +603,7 @@ func (c *UncachedHTTPClient) getHTTPDataWithContext(ctx context.Context, method
603603 // If we get a 500, we need to retry the request.
604604 return fmt .Errorf (resp .Message )
605605 }
606-
606+
607607 // Check context before sleeping
608608 backoffDuration := GetBackoffDuration (i )
609609 timer := time .NewTimer (backoffDuration )
You can’t perform that action at this time.
0 commit comments