mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53: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:
parent
8e99146cc2
commit
68c21c8ed8
9 changed files with 31 additions and 45 deletions
|
|
@ -22,7 +22,7 @@ func NewPublisher(client *redis.Client, ns Namespace) *Publisher {
|
|||
}
|
||||
}
|
||||
|
||||
func (r *Publisher) Write(channel transport.ChannelInterface, payload []byte) error {
|
||||
func (r *Publisher) Write(channel transport.Channel, payload []byte) error {
|
||||
return r.pipeline.Publish(r.ctx, r.ns.NewKey(channel).String(), payload).Err()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue