File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -368,25 +368,25 @@ func main() {
368
368
}
369
369
time .Sleep (time .Duration (10 ) * time .Second )
370
370
371
- fileInfo , err := os .Stat ("credentials.json" )
371
+ // fileInfo, err := os.Stat("credentials.json")
372
+ // if err != nil {
373
+ // TERMINATED = err.Error()
374
+ // }
375
+
376
+ // if LASTMOD < fileInfo.ModTime().Unix() {
377
+ updatedCredentials := & map [string ]Credential {}
378
+ credentialFile , err := os .ReadFile ("credentials.json" )
372
379
if err != nil {
373
380
TERMINATED = err .Error ()
374
381
}
375
382
376
- if LASTMOD < fileInfo .ModTime ().Unix () {
377
- updatedCredentials := & map [string ]Credential {}
378
- credentialFile , err := os .ReadFile ("credentials.json" )
379
- if err != nil {
380
- TERMINATED = err .Error ()
381
- }
382
-
383
- json .Unmarshal (credentialFile , & updatedCredentials )
383
+ json .Unmarshal (credentialFile , & updatedCredentials )
384
384
385
- config .Credentials = * updatedCredentials
386
- LASTMOD = fileInfo .ModTime ().Unix ()
385
+ config .Credentials = * updatedCredentials
386
+ // LASTMOD = fileInfo.ModTime().Unix()
387
387
388
- fmt .Println ("Updated credentials" )
389
- fmt .Println (maps .Keys (* credentials ))
390
- }
388
+ fmt .Println ("Updated credentials" )
389
+ fmt .Println (maps .Keys (* credentials ))
390
+ // }
391
391
}
392
392
}
You can’t perform that action at this time.
0 commit comments