mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-05 21:12:10 +02:00
rename interface{} to any.
This commit is contained in:
2
relay.go
2
relay.go
@ -381,7 +381,7 @@ func (r *Relay) Auth(ctx context.Context, event Event) (Status, error) {
|
||||
defer r.okCallbacks.Delete(event.ID)
|
||||
|
||||
// send AUTH
|
||||
authResponse := []interface{}{"AUTH", event}
|
||||
authResponse := []any{"AUTH", event}
|
||||
debugLog("{%s} sending %v\n", r.URL, authResponse)
|
||||
if err := r.Connection.WriteJSON(authResponse); err != nil {
|
||||
// status will be "failed"
|
||||
|
Reference in New Issue
Block a user