Make write on cluster server have a buffered channel so we can be sure to read the response.

pull/352/head
Paul Dix 2014-03-20 10:15:30 -04:00
parent c489ee23ea
commit 86995e67b6
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func (self *ClusterServer) MakeRequest(request *protocol.Request, responseStream
}
func (self *ClusterServer) Write(request *protocol.Request) error {
responseChan := make(chan *protocol.Response)
responseChan := make(chan *protocol.Response, 1)
err := self.connection.MakeRequest(request, responseChan)
if err != nil {
return err