X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=client.go;h=cc179c8ca1eaadca8796c5d144288ca3d2e0c359;hp=f9f79569c621d327269941e669ff3b2598b6f0bd;hb=de49f5eeba0117dd09fcdc290ef99ba6a5e2656d;hpb=1f4a463c0a9fb411827916c0df60df4538702307 diff --git a/client.go b/client.go index f9f7956..cc179c8 100644 --- a/client.go +++ b/client.go @@ -52,7 +52,7 @@ func NewClient(hostname string, conn net.Conn) *Client { // Client processor blockingly reads everything remote client sends, // splits messages by CRLF and send them to Daemon gorouting for processing // it futher. Also it can signalize that client is unavailable (disconnected). -func (client *Client) Processor(sink chan ClientEvent) { +func (client *Client) Processor(sink chan<- ClientEvent) { var buf_net []byte buf := make([]byte, 0) log.Println("New client", client)