Skip to content
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

Merged
merged 6 commits into from
Apr 24, 2018

Conversation

traysh
Copy link
Contributor

@traysh traysh commented Apr 19, 2018

No description provided.

@traysh traysh requested a review from felipejfc April 19, 2018 21:07
@coveralls
Copy link

coveralls commented Apr 19, 2018

Pull Request Test Coverage Report for Build 119

  • 124 of 149 (83.22%) changed or added relevant lines in 8 files are covered.
  • 10 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 86.646%

Changes Missing Coverage Covered Lines Changed/Added Lines %
util/compression/compression.go 15 17 88.24%
config/config.go 1 4 25.0%
agent/agent.go 5 11 45.45%
internal/message/message_encoder.go 93 107 86.92%
Files with Coverage Reduction New Missed Lines %
agent/agent.go 10 80.87%
Totals Coverage Status
Change from base Build 117: -0.3%
Covered Lines: 2790
Relevant Lines: 3220

💛 - Coveralls

agent/agent.go Outdated
if len(compressedData) < len(data) {
data = compressedData
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -34,7 +34,7 @@ func configureBackend() {
}

func configureFrontend(port int) {
ws := acceptor.NewWSAcceptor(fmt.Sprintf(":%d", port))
ws := acceptor.NewTCPAcceptor(fmt.Sprintf(":%d", port))
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will fix it

@traysh traysh force-pushed the feature/compression branch 2 times, most recently from a8cab2e to 228cee8 Compare April 23, 2018 16:25
Copy link
Contributor

@felipejfc felipejfc left a 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

@traysh traysh force-pushed the feature/compression branch 2 times, most recently from 98c3c13 to b44e6d3 Compare April 23, 2018 20:59
@traysh traysh merged commit 90457ed into master Apr 24, 2018
@andrehp andrehp deleted the feature/compression branch July 19, 2018 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants