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 {
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() {