-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some type alieses for neater function signatures
- Loading branch information
Showing
19 changed files
with
225 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
package replicatr | ||
|
||
import ( | ||
"github.com/nbd-wtf/go-nostr" | ||
) | ||
|
||
// BroadcastEvent emits an event to all listeners whose filters' match, skipping all filters and actions | ||
// it also doesn't attempt to store the event or trigger any reactions or callbacks | ||
func (rl *Relay) BroadcastEvent(evt *nostr.Event) { notifyListeners(evt) } | ||
func (rl *Relay) BroadcastEvent(evt Event) { notifyListeners(evt) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.