Skip to content

Commit

Permalink
Udate the Derivative bounds
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Wakely <[email protected]>
  • Loading branch information
StephenWakely committed Jul 4, 2023
1 parent 2ffc42a commit cb40494
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/vector-common/src/internal_event/cached_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ use super::{InternalEventHandle, RegisterInternalEvent};
/// new event is emitted for a previously unseen set of tags an event is registered
/// and stored in the cache.
#[derive(Derivative)]
#[derivative(Clone(bound = ""), Default(bound = "T: Default"))]
pub struct RegisteredEventCache<T: Clone, Event: RegisterTaggedInternalEvent> {
#[derivative(Clone(bound = "T: Clone"))]
pub struct RegisteredEventCache<T, Event: RegisterTaggedInternalEvent> {
fixed_tags: T,
cache: Arc<
RwLock<
Expand Down
2 changes: 1 addition & 1 deletion lib/vector-core/src/stream/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ where
pin!(batched_input);

let bytes_sent = protocol.map(|protocol| register(BytesSent { protocol }));
let events_sent = RegisteredEventCache::default();
let events_sent = RegisteredEventCache::new(());

loop {
// Core behavior of the loop:
Expand Down

0 comments on commit cb40494

Please sign in to comment.