all: Replace errors.Cause with errors.Is (#8236)

This commit is contained in:
greatroar
2022-03-26 12:05:57 +02:00
committed by GitHub
parent 44b11ec257
commit 4be867c560
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -882,7 +882,7 @@ func (s *connectionStatusHandler) ConnectionStatus() map[string]ConnectionStatus
}
func (s *connectionStatusHandler) setConnectionStatus(address string, err error) {
if errors.Cause(err) == context.Canceled {
if errors.Is(err, context.Canceled) {
return
}