Skip to content

Commit

Permalink
fix EventCounter
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jan 29, 2024
1 parent 658b4d1 commit 5281f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (s *Server) doCount(ctx context.Context, ws *WebSocket, request []json.RawM
return "failed to decode filter"
}

filter := &filters[i]
filter := filters[i]

// prevent kind-4 events from being returned to unauthed users,
// only when authentication is a thing
Expand Down
2 changes: 1 addition & 1 deletion interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ type AdvancedSaver interface {
}

type EventCounter interface {
CountEvents(ctx context.Context, filter *nostr.Filter) (int64, error)
CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
}

0 comments on commit 5281f66

Please sign in to comment.