Skip to content

Conversation

@fraillt
Copy link
Contributor

@fraillt fraillt commented Sep 25, 2019

Overall codebase improvements:

  • Most changes are in VirtualConnection struct to make process_incoming and process_outgoing results make iterable.
  • Introduced a new PacketInfo type.
  • Bugfix covered by a test, when last_sent, was not set when sending Unreliable packets.
  • Removed a lot of warnings when running cargo clippy --tests.

This PR will allow for much easier #246 integration.

Copy link
Contributor

@jstnlef jstnlef left a comment

Choose a reason for hiding this comment

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

There are a lot of stylistic changes in here which are in files not directly affected by the scope of the change. Could you just scope this down to only the changes necessary for the meat of this PR? Of course, in those blocks of code you can make the stylistic changes you want.

@fraillt
Copy link
Contributor Author

fraillt commented Sep 25, 2019

Would that help if I said that the only relevant files are 'src/net/socket.rs' and 'src/net/virtual_connection.rs' ?
The rest is 'cargo clippy' suggestions + 'cargo fmt', or trivial code to make work with VirtualConnection.

@jstnlef
Copy link
Contributor

jstnlef commented Sep 25, 2019

I would say, put up a PR for the stylistic errors. We'll merge it fast, then rebase this and I'll take a look at it later tonight.

@fraillt fraillt requested a review from jstnlef September 26, 2019 11:26
Copy link
Owner

@TimonPost TimonPost left a comment

Choose a reason for hiding this comment

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

round 2

fraillt and others added 2 commits September 27, 2019 10:56
Copy link
Owner

@TimonPost TimonPost left a comment

Choose a reason for hiding this comment

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

After addressing those I approve this PR. @jstnlef if you have any comments please submit them as well.

Grammar fixes

Co-Authored-By: Timon <timonpost@hotmail.nl>
@codecov
Copy link

codecov bot commented Oct 1, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@78a5563). Click here to learn what that means.
The diff coverage is 98.29%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #256   +/-   ##
========================================
  Coverage          ?   97.6%           
========================================
  Files             ?      26           
  Lines             ?    2796           
  Branches          ?       0           
========================================
  Hits              ?    2729           
  Misses            ?      67           
  Partials          ?       0
Impacted Files Coverage Δ
src/packet/header/standard_header.rs 98.64% <ø> (ø)
src/packet/outgoing.rs 98.59% <ø> (ø)
src/net/socket.rs 96.3% <100%> (ø)
src/packet/packet_structure.rs 100% <100%> (ø)
src/packet/process_result.rs 100% <100%> (ø)
src/infrastructure/acknowledgment.rs 99.51% <100%> (ø)
src/net/virtual_connection.rs 97.44% <96.72%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78a5563...5605cff. Read the comment docs.

@TimonPost TimonPost merged commit b0121dc into TimonPost:master Oct 2, 2019
@fraillt fraillt deleted the iterable_virtual_connection_process_out_in_packets branch October 2, 2019 16:51
jstnlef pushed a commit to jstnlef/laminar that referenced this pull request Oct 12, 2019
* Most changes are in `VirtualConnection` struct to make `process_incoming` and `process_outgoing` results make iterable.
* Introduced a new `PacketInfo` type.
* Bugfix covered by a test, when `last_sent`, was not set when sending `Unreliable` packets.
* Removed a lot of warnings when running `cargo clippy --tests`.
jstnlef pushed a commit that referenced this pull request Oct 12, 2019
* Most changes are in `VirtualConnection` struct to make `process_incoming` and `process_outgoing` results make iterable.
* Introduced a new `PacketInfo` type.
* Bugfix covered by a test, when `last_sent`, was not set when sending `Unreliable` packets.
* Removed a lot of warnings when running `cargo clippy --tests`.
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.

3 participants