relay wasn't taking CustomHandler and NoticeHandler from options.

This commit is contained in:
fiatjaf
2025-11-11 23:49:00 -03:00
parent dfd4bea78c
commit 1c43f0d666

View File

@@ -56,6 +56,8 @@ func NewRelay(ctx context.Context, url string, opts RelayOptions) *Relay {
okCallbacks: make(map[ID]okcallback, 20), okCallbacks: make(map[ID]okcallback, 20),
subscriptionChannelCloseQueue: make(chan *Subscription), subscriptionChannelCloseQueue: make(chan *Subscription),
requestHeader: opts.RequestHeader, requestHeader: opts.RequestHeader,
customHandler: opts.CustomHandler,
noticeHandler: opts.NoticeHandler,
} }
return r return r