-
Notifications
You must be signed in to change notification settings - Fork 481
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
handshake compression + compressData viper config + adapt tests #8
Conversation
Pull Request Test Coverage Report for Build 119
💛 - Coveralls |
agent/agent.go
Outdated
if len(compressedData) < len(data) { | ||
data = compressedData | ||
} | ||
|
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.
Remove this empty line
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.
done
examples/demo/cluster/main.go
Outdated
@@ -34,7 +34,7 @@ func configureBackend() { | |||
} | |||
|
|||
func configureFrontend(port int) { | |||
ws := acceptor.NewWSAcceptor(fmt.Sprintf(":%d", port)) | |||
ws := acceptor.NewTCPAcceptor(fmt.Sprintf(":%d", port)) |
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.
Shouldn't this still be WS?
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.
Yes, will fix it
a8cab2e
to
228cee8
Compare
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.
util/compression/compression.go
needs unit tests, see https://github.com/topfreegames/pitaya/blob/master/util/util_test.go#L169-L216
98c3c13
to
b44e6d3
Compare
b44e6d3
to
41843dd
Compare
No description provided.