Skip to content

Commit

Permalink
Bump protocol version.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchambers committed Nov 25, 2020
1 parent 2a22ed0 commit 11dd94b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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 src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn open_repository(
write_packet(
w,
&Packet::TOpenRepository(TOpenRepository {
repository_protocol_version: "2".to_string(),
repository_protocol_version: "3".to_string(),
lock_hint,
}),
)?;
Expand Down
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn serve(
loop {
match read_packet(r, DEFAULT_MAX_PACKET_SIZE)? {
Packet::TOpenRepository(req) => {
if req.repository_protocol_version != "2" {
if req.repository_protocol_version != "3" {
anyhow::bail!(
"server does not support bupstash protocol version {}",
req.repository_protocol_version
Expand Down

0 comments on commit 11dd94b

Please # to comment.