Skip to content

Commit

Permalink
Move MessageValue out of message/mod.rs (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Feb 16, 2023
1 parent f4da416 commit 188eb55
Show file tree
Hide file tree
Showing 10 changed files with 400 additions and 390 deletions.
3 changes: 2 additions & 1 deletion shotover-proxy/benches/benches/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ use criterion::{black_box, criterion_group, BatchSize, Criterion};
use shotover_proxy::codec::cassandra::CassandraCodec;
use shotover_proxy::frame::cassandra::{parse_statement_single, Tracing};
use shotover_proxy::frame::{CassandraFrame, CassandraOperation, CassandraResult, Frame};
use shotover_proxy::message::{IntSize, Message, MessageValue};
use shotover_proxy::message::Message;
use shotover_proxy::message_value::{IntSize, MessageValue};
use tokio_util::codec::Encoder;

fn criterion_benchmark(c: &mut Criterion) {
Expand Down
3 changes: 2 additions & 1 deletion shotover-proxy/src/frame/cassandra.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::message::{serialize_len, serialize_with_length_prefix, MessageValue, QueryType};
use crate::message::QueryType;
use crate::message_value::{serialize_len, serialize_with_length_prefix, MessageValue};
use anyhow::{anyhow, Result};
use bytes::Bytes;
use cassandra_protocol::compression::Compression;
Expand Down
1 change: 1 addition & 0 deletions shotover-proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub mod config;
pub mod error;
pub mod frame;
pub mod message;
pub mod message_value;
mod observability;
pub mod runner;
mod server;
Expand Down
Loading

0 comments on commit 188eb55

Please sign in to comment.