Skip to content

Commit f86a9d4

Browse files
benjamin-awdpront
andauthored
chore(nats source): make shared nats module public (#23625)
Co-authored-by: Pavlos Rontidis <[email protected]>
1 parent b884ee7 commit f86a9d4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub mod kubernetes;
9292
pub mod line_agg;
9393
pub mod list;
9494
#[cfg(any(feature = "sources-nats", feature = "sinks-nats"))]
95-
pub(crate) mod nats;
95+
pub mod nats;
9696
pub mod net;
9797
#[allow(unreachable_pub)]
9898
pub(crate) mod proto;

src/nats.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
//! Shared helper functions for NATS source and sink.
2+
#![allow(missing_docs)]
3+
14
use nkeys::error::Error as NKeysError;
25
use snafu::{ResultExt, Snafu};
36
use vector_lib::configurable::configurable_component;
47
use vector_lib::sensitive_string::SensitiveString;
58

69
use crate::tls::TlsEnableableConfig;
710

11+
/// Errors that can occur during NATS configuration.
812
#[derive(Debug, Snafu)]
913
pub enum NatsConfigError {
1014
#[snafu(display("NATS Auth Config Error: {}", source))]

0 commit comments

Comments
 (0)