2022-07-17 09:44:16 +03:00

19 lines
247 B
Go

//go:build !windows
package drpcserver
import (
"errors"
"net"
)
// isTemporary checks if an error is temporary.
func isTemporary(err error) bool {
var nErr net.Error
if errors.As(err, &nErr) {
return nErr.Temporary()
}
return false
}