publisher added
This commit is contained in:
parent
6addcca08d
commit
9366cbbf6d
2 changed files with 44 additions and 0 deletions
|
|
@ -70,3 +70,7 @@ func StartConsumer(ctx context.Context, client *Client, chanLen int) chan []byte
|
|||
|
||||
return msgCh
|
||||
}
|
||||
|
||||
func NewPublisher(client *Client) Publisher {
|
||||
return &PubHandler{client: client}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue