Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomika committed Oct 2, 2024
1 parent 975d604 commit a21efab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ type Channel struct {
Clients *syncmap.Map[string, *Client]
handleOnce sync.Once
cleanupOnce sync.Once
onceData sync.Once
}

func (c *Channel) GetClients() iter.Seq2[string, *Client] {
Expand Down
4 changes: 0 additions & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ func NewClient(ID string, rw io.ReadWriter, direction ChannelDirection, blockWri
Channels: syncmap.New[string, *Channel](),
Done: make(chan struct{}),
Data: make(chan ChannelMessage),
Error: make(chan error),
Replay: replay,
BlockWrite: blockWrite,
}
Expand All @@ -29,13 +28,10 @@ type Client struct {
Direction ChannelDirection
Done chan struct{}
Data chan ChannelMessage
Error chan error
Replay bool
BlockWrite bool
once sync.Once
onceData sync.Once
onceError sync.Once
onceRead sync.Once
}

func (c *Client) GetChannels() iter.Seq2[string, *Channel] {
Expand Down

0 comments on commit a21efab

Please sign in to comment.