mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Update metrics.go
This commit is contained in:
parent
6635c0f840
commit
35960264e0
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ func markDialError(err error) {
|
|||
return
|
||||
}
|
||||
|
||||
var e *protoHandshakeError
|
||||
var phe *protoHandshakeError
|
||||
switch {
|
||||
case errors.Is(err, DiscTooManyPeers):
|
||||
dialTooManyPeers.Mark(1)
|
||||
|
|
@ -82,7 +82,7 @@ func markDialError(err error) {
|
|||
dialUnexpectedIdentity.Mark(1)
|
||||
case errors.Is(err, errEncHandshakeError):
|
||||
dialEncHandshakeError.Mark(1)
|
||||
case errors.As(err, &e):
|
||||
case errors.As(err, &phe):
|
||||
dialProtoHandshakeError.Mark(1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue