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

Commit91e2a23

Browse files
committed
Minor fixups
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent09f7305 commit91e2a23

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎coderd/notifications/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (m *Manager) syncUpdates(ctx context.Context) {
222222
nSuccess:=len(m.success)
223223
nFailure:=len(m.failure)
224224

225-
m.metrics.PendingUpdates.Set(float64(len(m.success)+len(m.failure)))
225+
m.metrics.PendingUpdates.Set(float64(nSuccess+nFailure))
226226

227227
// Nothing to do.
228228
ifnSuccess+nFailure==0 {

‎coderd/notifications/metrics_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ func TestMetrics(t *testing.T) {
153153
"coderd_notifications_inflight_dispatches":func(metric*dto.Metric,seriesstring)bool {
154154
// This is a gauge, so it can be difficult to get the timing right to catch it.
155155
// See TestInflightDispatchesMetric for a more precise test.
156-
// TODO: write it
157156
returntrue
158157
},
159158
"coderd_notifications_pending_updates":func(metric*dto.Metric,seriesstring)bool {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp