rpc: implement Unwrap() for wsHandshakeError #29522 (#1015)

Co-authored-by: Marcus Baldassarre <baldassarremarcus@gmail.com>
This commit is contained in:
Daniel Liu 2025-04-29 17:12:33 +08:00 committed by GitHub
parent c0747977e2
commit fd42d8b292
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,6 +122,10 @@ func (e wsHandshakeError) Error() string {
return s
}
func (e wsHandshakeError) Unwrap() error {
return e.err
}
func originIsAllowed(allowedOrigins mapset.Set[string], browserOrigin string) bool {
it := allowedOrigins.Iterator()
for origin := range it.C {