Skip to content

Commit bb2594e

Browse files
authored
update Pelikan dependencies (#384)
Updates the Pelikan dependencies to the latest versions. This pulls in a fix for the session buffer.
1 parent b5a7a65 commit bb2594e

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

Cargo.lock

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rpc-perf"
33
description = "RPC Performance Testing"
4-
version = "5.21.0"
4+
version = "5.21.1-alpha.0"
55
authors = ["Brian Martin <[email protected]>"]
66
edition = "2021"
77
homepage = "https://github.com/iopsystems/rpc-perf"

src/clients/cache/memcache/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::*;
22
use crate::clients::ResponseError;
33
use crate::net::Connector;
4-
use protocol_memcache::{Compose, Parse, Request, Response, Ttl};
4+
use protocol_memcache::{Parse, Protocol, Request, Response, TextProtocol, Ttl};
55
use session::{Buf, BufMut, Buffer};
66
use std::borrow::{Borrow, BorrowMut};
77

@@ -40,6 +40,8 @@ async fn task(
4040
) -> Result<()> {
4141
let connector = Connector::new(&config)?;
4242

43+
let protocol = TextProtocol::default();
44+
4345
// we would not be creating a memcache client task if we didn't have a
4446
// client config, so this unwrap will succeed.
4547
let client_config = config.client().unwrap();
@@ -103,7 +105,7 @@ async fn task(
103105

104106
// compose request
105107
REQUEST_OK.increment();
106-
request.request.compose(&mut write_buffer);
108+
let _ = protocol.compose_request(&request.request, &mut write_buffer);
107109

108110
// send request
109111
let start = Instant::now();

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod net;
2020
mod output;
2121
mod workload;
2222

23-
use config::*;
23+
use config::{Protocol, *};
2424
use metrics::*;
2525

2626
static RUNNING: AtomicBool = AtomicBool::new(true);

0 commit comments

Comments
 (0)