diff --git a/publisher.go b/publisher.go index 69abeae..45c3772 100644 --- a/publisher.go +++ b/publisher.go @@ -9,11 +9,11 @@ type Publisher interface { Push(data []byte) error } -type PubHandler struct { +type pubHandler struct { client *Client } -func (p *PubHandler) Push(data []byte) error { +func (p *pubHandler) Push(data []byte) error { p.client.mutex.Lock() if !p.client.isReady { p.client.mutex.Unlock()