Skip to content

Commit

Permalink
Redundant breaks
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Yuan <felix.yuan@reddit.com>
  • Loading branch information
Sticksman committed Jun 29, 2023
1 parent 7c9493f commit 0f928fe
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions collector/pg_stat_walreceiver.go
Expand Up @@ -177,25 +177,18 @@ func (c *PGStatWalReceiverCollector) Update(ctx context.Context, instance *insta
switch status.String {
case "stopped":
statusMetric = 0.0
break
case "starting":
statusMetric = 1.0
break
case "streaming":
statusMetric = 2.0
break
case "waiting":
statusMetric = 3.0
break
case "restarting":
statusMetric = 4.0
break
case "stopping":
statusMetric = -1.0
break
default:
statusMetric = -2.0
break
}

if !receiveStartLsn.Valid {
Expand Down

0 comments on commit 0f928fe

Please sign in to comment.