Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite4e4669

Browse files
fix(agent/agentcontainers): remove unneeded default branch (#20511)
Closescoder/internal#769According to the `time.NewTicker` documentation [^1] (which is usedunder the hood byhttps://github.com/coder/quartz) it will automaticallyadjust the time interval to make up for slow receivers. This means weshould be safe to drop the default branch.> NewTicker returns a new Ticker containing a channel that will send thecurrent time on the channel after each tick. The period of the ticks isspecified by the duration argument. The ticker will adjust the timeinterval or drop ticks to make up for slow receivers. The duration dmust be greater than zero; if not, NewTicker will panic.[^1]:https://pkg.go.dev/time#Ticker
1 parenta1fa58a commite4e4669

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎agent/agentcontainers/api.go‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,6 @@ func (api *API) updaterLoop() {
682682
}else {
683683
prevErr=nil
684684
}
685-
default:
686-
api.logger.Debug(api.ctx,"updater loop ticker skipped, update in progress")
687685
}
688686

689687
returnnil// Always nil to keep the ticker going.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp