-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
put *gzip.Writer back to pool #1441
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also see why gofmt is failing? (Is it because of the item I commented on?)
rpc_util.go
Outdated
@@ -63,6 +63,9 @@ func NewGZIPCompressor() Compressor { | |||
|
|||
func (c *gzipCompressor) Do(w io.Writer, p []byte) error { | |||
z := c.pool.Get().(*gzip.Writer) | |||
defer func(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defer c.pool.Put(z)
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
This reverts commit ae489c4
Thanks for finding this and for the fix! It looks like the second commit was done by xuechen.wzm -- if you redo this commit with your other username and |
sry for my careless : ( |
I'm not sure if this will work. I thought that since there was a commit by another author, it would say you hadn't signed the CLAs. But it's not complaining at the moment. I'll be squashing and merging anyway, and since both authors are you, LGTM and let's hope it actually works. Thanks again for the fix. |
fixes #1439