Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions yellowstone-grpc-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ use {
stream::Stream,
},
std::{
path::PathBuf,
sync::{Arc, Mutex},
time::Duration,
},
tokio::net::UnixStream,
tonic::{
codec::{CompressionEncoding, Streaming},
metadata::{errors::InvalidMetadataValue, AsciiMetadataValue, MetadataValue},
Expand All @@ -39,6 +37,9 @@ use {
SubscribeRequest, SubscribeUpdate, SubscribeUpdateDeshred,
},
};
#[cfg(unix)]
use {std::path::PathBuf, tokio::net::UnixStream};

pub use {
crate::{
dedup::{DedupState, DedupStream},
Expand Down Expand Up @@ -649,6 +650,9 @@ impl GeyserGrpcBuilder {
/// The `path` is the filesystem path to the socket (e.g. "/tmp/yellowstone.sock").
/// tonic requires a dummy HTTP URI for the channel, but the actual transport
/// goes through the UDS connector.
///
/// Unix-only. Tokio's `UnixStream` is not available on `cfg(windows)`.
#[cfg(unix)]
pub async fn connect_uds(
self,
path: impl Into<PathBuf>,
Expand Down