Skip to content

Commit

Permalink
fix: size scope empty
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Dec 17, 2021
1 parent 956bcbd commit 21cf520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/rpc/scheduler/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ func (p *proxy) RegisterPeerTask(ctx context.Context, req *scheduler.PeerTaskReq
if err != nil {
isSuccess = false
metrics.RegisterPeerTaskFailureCount.Inc()
} else {
metrics.PeerTaskCounter.WithLabelValues(resp.SizeScope.String()).Inc()
}
metrics.PeerTaskCounter.WithLabelValues(resp.SizeScope.String()).Inc()

logger.StatPeerLogger.Info("Register Peer Task",
zap.Bool("Success", isSuccess),
Expand Down

0 comments on commit 21cf520

Please sign in to comment.