status-go/vendor/github.com/libp2p/go-reuseport/poll/error.go

10 lines
253 B
Go

package poll
var errTimeout = &timeoutError{}
type timeoutError struct{}
func (e *timeoutError) Error() string { return "i/o timeout" }
func (e *timeoutError) Timeout() bool { return true }
func (e *timeoutError) Temporary() bool { return true }