Files
zeekay 7528ee0969 refactor: use p2p package for Error, Sender, SendConfig types
- 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
2025-12-12 13:13:16 -08:00

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
)