fix: otel not working without USER
This commit is contained in:
parent
ad566ee9ef
commit
c5ed376d5f
127 changed files with 347 additions and 305 deletions
|
|
@ -34,7 +34,7 @@ type Listener struct {
|
|||
timeout time.Duration
|
||||
}
|
||||
|
||||
// Creates a new listener from PacketConn.
|
||||
// ListenPacketConn creates a new listener from PacketConn.
|
||||
func ListenPacketConn(packetConn net.PacketConn, timeout time.Duration) (*Listener, error) {
|
||||
if timeout <= 0 {
|
||||
return nil, errors.New("timeout should be greater than zero")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue