From de174c5b5ce18843002b6f1ed1f7ee06b6ad66bf Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 31 Oct 2017 19:55:21 +0900 Subject: [PATCH] ing --- client.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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() {