Skip to content

Commit

Permalink
Fix fatal bugs2
Browse files Browse the repository at this point in the history
  • Loading branch information
maxymania committed Oct 2, 2017
1 parent b640001 commit c63936f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion notrest/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var pool_Request sync.Pool

func AckquireRequest() *Request {
r := pool_Request.Get()
if r!=nil { return new(Request) }
if r==nil { return new(Request) }
return r.(*Request)
}
func ReleaseRequest(r *Request) {
Expand Down
2 changes: 1 addition & 1 deletion notrest/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var pool_Response sync.Pool

func AckquireResponse() *Response {
r := pool_Response.Get()
if r!=nil { return new(Response) }
if r==nil { return new(Response) }
return r.(*Response)
}
func ReleaseResponse(r *Response) {
Expand Down
2 changes: 1 addition & 1 deletion semirpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (c *Client) input() error {
resp = co.resp
}

if resp!=nil { resp = c.respmk() }
if resp==nil { resp = c.respmk() }

err = c.client.Recv(resp)

Expand Down

0 comments on commit c63936f

Please sign in to comment.