Skip to content

Commit

Permalink
reflowing to respeck the 80 character terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
mleku committed Dec 20, 2024
1 parent 1c7f6c8 commit 94f8181
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions realy/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ type testRelay struct {
acceptEvent func(*event.T) bo
}

func (tr *testRelay) Name() st { return tr.name }
func (tr *testRelay) Storage(context.T) store.I { return tr.storage }
func (tr *testRelay) Origin() st { return "example.com" }
func (tr *testRelay) Name() st { return tr.name }
func (tr *testRelay) Storage() store.I { return tr.storage }
func (tr *testRelay) Origin() st { return "example.com" }
func (tr *testRelay) Init() er {
tr.cx, tr.Cancel = context.Cancel(context.Bg())
if fn := tr.init; fn != nil {
Expand All @@ -54,7 +54,8 @@ func (tr *testRelay) OnShutdown(c context.T) {
}
}

func (tr *testRelay) AcceptEvent(c context.T, evt *event.T, hr *http.Request, origin st,
func (tr *testRelay) AcceptEvent(c context.T, evt *event.T, hr *http.Request,
origin st,
authedPubkey by) (ok bo, notice st, after func()) {
if fn := tr.acceptEvent; fn != nil {
return fn(evt), "", nil
Expand Down Expand Up @@ -110,7 +111,8 @@ func (st *testStorage) Close() (err er) {
return
}

func (st *testStorage) QueryEvents(c context.T, f *filter.T) (evs event.Ts, err er) {
func (st *testStorage) QueryEvents(c context.T, f *filter.T) (evs event.Ts,
err er) {
if fn := st.queryEvents; fn != nil {
return fn(c, f)
}
Expand Down

0 comments on commit 94f8181

Please sign in to comment.