Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaxmax committed Nov 19, 2023
1 parent 0f17803 commit 049b953
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion joe.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ type ReplayProviderWithGC interface {

type (
subscriber chan<- error
subscribers map[subscriber]MessageWriter
subscription struct {
done subscriber
Subscription
Expand Down
4 changes: 1 addition & 3 deletions joe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (

type mockReplayProvider struct {
errGC error
shouldPanic string
callsGC int
callsPut int
callsReplay int
shouldPanic string
}

func (m *mockReplayProvider) Put(msg *sse.Message, _ []string) *sse.Message {
Expand Down Expand Up @@ -312,7 +312,5 @@ func TestJoe_ReplayPanic(t *testing.T) {
time.Sleep(time.Millisecond)
require.Equal(t, 1, rp.callsReplay, "replay was called")

// TODO: Tests for all panics.

require.NoError(t, j.Shutdown(context.Background()))
}

0 comments on commit 049b953

Please sign in to comment.