Skip to content

Commit

Permalink
自动更新Token,panic后增加自动重启
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoogle-ink committed Aug 3, 2024
1 parent 95dd2cb commit 52f9f61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mini/access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (s *SDK) goAutoRefreshStableAccessToken() {
buf := make([]byte, 64<<10)
buf = buf[:runtime.Stack(buf, false)]
s.logger.Errorf("mini_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf)
s.goAutoRefreshStableAccessToken()
}
}()
for {
Expand Down
1 change: 1 addition & 0 deletions open/access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func (s *SDK) goAutoRefreshAccessTokenJob() {
buf := make([]byte, 64<<10)
buf = buf[:runtime.Stack(buf, false)]
s.logger.Errorf("open_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf)
s.goAutoRefreshAccessTokenJob()
}
}()
for {
Expand Down
1 change: 1 addition & 0 deletions public/access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (s *SDK) goAutoRefreshAccessToken() {
buf := make([]byte, 64<<10)
buf = buf[:runtime.Stack(buf, false)]
s.logger.Errorf("public_goAutoRefreshAccessToken: panic recovered: %s\n%s", r, buf)
s.goAutoRefreshAccessToken()
}
}()
for {
Expand Down

0 comments on commit 52f9f61

Please sign in to comment.