Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazk committed Jan 8, 2025
1 parent 796f736 commit 329eef2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
5 changes: 0 additions & 5 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6012,24 +6012,19 @@ version = "0.22.0-alpha.1+dev"
dependencies = [
"prost",
"re_build_info",
"re_byte_size",
"re_chunk",
"re_error",
"re_format",
"re_log",
"re_log_encoding",
"re_log_types",
"re_memory",
"re_protos",
"re_smart_channel",
"re_tracing",
"re_types",
"thiserror 1.0.65",
"tokio",
"tokio-stream",
"tokio-util",
"tonic",
"url",
]

[[package]]
Expand Down
5 changes: 0 additions & 5 deletions crates/store/re_grpc_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,19 @@ all-features = true

[dependencies]
re_build_info.workspace = true
re_byte_size.workspace = true
re_chunk.workspace = true
re_error.workspace = true
re_format.workspace = true
re_log.workspace = true
re_log_encoding = { workspace = true, features = ["encoder", "decoder"] }
re_log_types.workspace = true
re_memory.workspace = true
re_protos.workspace = true
re_smart_channel.workspace = true
re_tracing.workspace = true
re_types.workspace = true

# External
prost.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-stream = { workspace = true, features = ["sync"] }
tokio-util.workspace = true
tonic = { workspace = true, default-features = false, features = ["transport"] }
url.workspace = true
4 changes: 2 additions & 2 deletions crates/store/re_grpc_server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates.

[![Latest version](https://img.shields.io/crates/v/re_grpc_server.svg)](https://crates.io/crates/re_grpc_server)
[![Documentation](https://docs.rs/re_grpc_server/badge.svg)](https://docs.rs/re_grpc_server)
[![Latest version](https://img.shields.io/crates/v/re_grpc_server.svg?speculative_link)](https://crates.io/crates/re_grpc_server?speculative_link)
[![Documentation](https://docs.rs/re_grpc_server/badge.svg?speculative_link)](https://docs.rs/re_grpc_server?speculative_link)
![MIT](https://img.shields.io/badge/license-MIT-blue.svg)
![Apache](https://img.shields.io/badge/license-Apache-blue.svg)

Expand Down
8 changes: 5 additions & 3 deletions crates/store/re_grpc_server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,13 @@ impl message_proxy_server::MessageProxy for MessageProxy {
mod tests {
use super::*;

use message_proxy_server::MessageProxy;
use re_build_info::CrateVersion;
use re_chunk::RowId;
use re_log_encoding::protobuf_conversions::{log_msg_from_proto, log_msg_to_proto};
use re_log_encoding::Compression;
use re_log_types::{
ApplicationId, LogMsg, SetStoreInfo, StoreId, StoreInfo, StoreKind, StoreSource, Time,
};
use re_protos::log_msg;
use re_protos::sdk_comms::v0::{
message_proxy_client::MessageProxyClient, message_proxy_server::MessageProxyServer,
};
Expand Down Expand Up @@ -358,6 +356,10 @@ mod tests {
}

async fn setup() -> (Completion, SocketAddr) {
setup_with_memory_limit(MemoryLimit::UNLIMITED).await
}

async fn setup_with_memory_limit(memory_limit: MemoryLimit) -> (Completion, SocketAddr) {
let completion = Completion::new();

let tcp_listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
Expand All @@ -368,7 +370,7 @@ mod tests {
async move {
tonic::transport::Server::builder()
.add_service(MessageProxyServer::new(super::MessageProxy::new(
MemoryLimit::UNLIMITED,
memory_limit,
)))
.serve_with_incoming_shutdown(
TcpIncoming::from_listener(tcp_listener, true, None).unwrap(),
Expand Down

0 comments on commit 329eef2

Please sign in to comment.