status-go/vendor/github.com/pion/transport/vnet/errors.go

20 lines
250 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package vnet
type timeoutError struct {
msg string
}
func newTimeoutError(msg string) error {
return &timeoutError{
msg: msg,
}
}
func (e *timeoutError) Error() string {
return e.msg
}
func (e *timeoutError) Timeout() bool {
return true
}