This commit is contained in:
crusader 2017-10-31 19:55:21 +09:00
parent d7fdb8c4f3
commit de174c5b5c

View File

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