rename interface{} to any.

This commit is contained in:
fiatjaf
2023-04-12 12:14:24 -03:00
parent ec3f1287c4
commit 326d2790de
4 changed files with 6 additions and 5 deletions

View File

@ -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"