mirror of
https://github.com/luxfi/warp.git
synced 2026-10-30 15:13:04 +00:00
- Add dependency on github.com/luxfi/p2p v1.4.4 - warp.Error is now an alias for p2p.Error - warp.Sender is now an alias for p2p.Sender - warp.SendConfig is now an alias for p2p.SendConfig - Re-export standard errors from p2p (ErrUnexpected, etc) - Update Handler to use p2p.Error in signatures
18 lines
479 B
Go
18 lines
479 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package warp
|
|
|
|
import "github.com/luxfi/p2p"
|
|
|
|
// Error is an alias for p2p.Error for backward compatibility
|
|
type Error = p2p.Error
|
|
|
|
// Standard errors re-exported from p2p
|
|
var (
|
|
ErrUnexpected = p2p.ErrUnexpected
|
|
ErrUnregisteredHandler = p2p.ErrUnregisteredHandler
|
|
ErrNotValidator = p2p.ErrNotValidator
|
|
ErrThrottled = p2p.ErrThrottled
|
|
)
|