]> Cypherpunks.ru repositories - goircd.git/blobdiff - client.go
Make channels unidirectional.
[goircd.git] / client.go
index f9f79569c621d327269941e669ff3b2598b6f0bd..cc179c8ca1eaadca8796c5d144288ca3d2e0c359 100644 (file)
--- 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)