1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-24 10:23:41 +02:00

transport/channel.go: Rewrite to not use a interface. Action struct has a Channel() method that returns a channel instead.

This commit is contained in:
Henrik Hautakoski 2023-03-07 18:35:58 +01:00
parent 8e99146cc2
commit 68c21c8ed8
9 changed files with 31 additions and 45 deletions

View file

@ -7,5 +7,5 @@ package transport
type Reader interface {
// Read a message from a channel.
// Read may block until a message is ready or an error occured.
Read(channel ChannelInterface) ([]byte, error)
Read(channel Channel) ([]byte, error)
}