Skip to content

Commit

Permalink
Merge branch 'johanhelsing:main' into connection-severing
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau authored Jan 1, 2024
2 parents bf3a9bf + b5013e1 commit a618737
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ updates:
directory: /
schedule:
interval: weekly
groups:
patch-updates:
update-types:
- "patch"
2 changes: 2 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
push:
branches:
- main
pull_request:

name: Code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint-toml.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
push:
branches:
- main
pull_request:

name: Lint TOML
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
push:
branches:
- main
pull_request:

name: Markdown Lint
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion matchbox_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# to build, run `docker build -f matchbox_server/Dockerfile` from root of the
# repository

FROM rust:1.73-slim-bullseye as builder
FROM rust:1.74-slim-bullseye as builder

WORKDIR /usr/src/matchbox_server/

Expand Down
6 changes: 3 additions & 3 deletions matchbox_socket/src/ggrs_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use ggrs::{Message, PlayerType};
use matchbox_protocol::PeerId;

use crate::{
ChannelConfig, MessageLoopFuture, MultipleChannels, NoChannels, Packet, SingleChannel,
WebRtcChannel, WebRtcSocket, WebRtcSocketBuilder,
ChannelConfig, ChannelPlurality, MessageLoopFuture, MultipleChannels, NoChannels, Packet,
SingleChannel, WebRtcChannel, WebRtcSocket, WebRtcSocketBuilder,
};

impl ChannelConfig {
Expand Down Expand Up @@ -64,7 +64,7 @@ impl WebRtcSocket {
}
}

impl WebRtcSocket {
impl<C: ChannelPlurality> WebRtcSocket<C> {
/// Returns a Vec of connected peers as [`ggrs::PlayerType`]
pub fn players(&mut self) -> Vec<PlayerType<PeerId>> {
let Some(our_id) = self.id() else {
Expand Down

0 comments on commit a618737

Please sign in to comment.