diff --git a/client.go b/client.go index 2344771..43eec7a 100644 --- a/client.go +++ b/client.go @@ -11,7 +11,7 @@ import ( ) type Client interface { - Start() error + Start() Stop() } @@ -31,7 +31,7 @@ type client struct { stopWg sync.WaitGroup } -func (c *client) Start() error { +func (c *client) Start() { if nil == c.ch { panic("Client: client handler must be specified.") } @@ -46,8 +46,6 @@ func (c *client) Start() error { c.stopWg.Add(1) go runClient(c) - - return nil } func (c *client) Stop() {