ing
This commit is contained in:
parent
d7fdb8c4f3
commit
de174c5b5c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user