status-go/vendor/github.com/anacrolix/go-libutp/deadline.go

12 lines
299 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package utp
import "net"
type errDeadlineExceeded struct{}
var _ net.Error = errDeadlineExceeded{}
func (errDeadlineExceeded) Error() string { return "deadline exceeded" }
func (errDeadlineExceeded) Temporary() bool { return false }
func (errDeadlineExceeded) Timeout() bool { return true }