Skip to content

Commit 0f928fe

Browse files
committed
Redundant breaks
Signed-off-by: Felix Yuan <felix.yuan@reddit.com>
1 parent 7c9493f commit 0f928fe

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

collector/pg_stat_walreceiver.go

-7
Original file line numberDiff line numberDiff line change
@@ -177,25 +177,18 @@ func (c *PGStatWalReceiverCollector) Update(ctx context.Context, instance *insta
177177
switch status.String {
178178
case "stopped":
179179
statusMetric = 0.0
180-
break
181180
case "starting":
182181
statusMetric = 1.0
183-
break
184182
case "streaming":
185183
statusMetric = 2.0
186-
break
187184
case "waiting":
188185
statusMetric = 3.0
189-
break
190186
case "restarting":
191187
statusMetric = 4.0
192-
break
193188
case "stopping":
194189
statusMetric = -1.0
195-
break
196190
default:
197191
statusMetric = -2.0
198-
break
199192
}
200193

201194
if !receiveStartLsn.Valid {

0 commit comments

Comments
 (0)