Skip to content

Commit

Permalink
Fix dial controller and monitoring (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 authored Jul 8, 2024
1 parent c847db5 commit 5d366fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/jimm/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (w *Watcher) dialController(ctx context.Context, ctl *dbmodel.Controller) (
if !updateController {
return
}
if uerr := w.Database.UpdateController(ctx, ctl); err != nil {
if uerr := w.Database.UpdateController(ctx, ctl); uerr != nil {
zapctx.Error(ctx, "cannot set controller available", zap.Error(uerr))
}
// Note (alesstimec) This channel is only available in tests.
Expand Down
2 changes: 1 addition & 1 deletion internal/servermon/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ var (
Name: "errors_total",
Help: "The number of monitoring errors found.",
}, []string{"controller"})
WebsocketRequestDuration = promauto.NewSummaryVec(prometheus.SummaryOpts{
WebsocketRequestDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "jimm",
Subsystem: "websocket",
Name: "request_duration_seconds",
Expand Down

0 comments on commit 5d366fb

Please sign in to comment.