Skip to content

Commit

Permalink
fix: main branch, offset type got updated (#2171)
Browse files Browse the repository at this point in the history
Signed-off-by: Vigith Maurice <[email protected]>
  • Loading branch information
vigith authored Oct 17, 2024
1 parent dc137c2 commit 187398c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
11 changes: 3 additions & 8 deletions rust/numaflow-core/src/sink/blackhole.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mod tests {
use chrono::Utc;

use super::BlackholeSink;
use crate::message::IntOffset;
use crate::{
message::{Message, MessageID, Offset, ResponseFromSink, ResponseStatusFromSink},
sink::Sink,
Expand All @@ -34,10 +35,7 @@ mod tests {
Message {
keys: vec![],
value: b"Hello, World!".to_vec(),
offset: Offset {
offset: "1".to_string(),
partition_id: 0,
},
offset: Some(Offset::Int(IntOffset::new(1, 0))),
event_time: Utc::now(),
headers: Default::default(),
id: MessageID {
Expand All @@ -49,10 +47,7 @@ mod tests {
Message {
keys: vec![],
value: b"Hello, World!".to_vec(),
offset: Offset {
offset: "2".to_string(),
partition_id: 0,
},
offset: Some(Offset::Int(IntOffset::new(1, 0))),
event_time: Utc::now(),
headers: Default::default(),
id: MessageID {
Expand Down
11 changes: 3 additions & 8 deletions rust/numaflow-core/src/sink/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mod tests {
use chrono::Utc;

use super::LogSink;
use crate::message::IntOffset;
use crate::{
message::{Message, MessageID, Offset, ResponseFromSink, ResponseStatusFromSink},
sink::Sink,
Expand All @@ -50,10 +51,7 @@ mod tests {
Message {
keys: vec![],
value: b"Hello, World!".to_vec(),
offset: Offset {
offset: "1".to_string(),
partition_id: 0,
},
offset: Some(Offset::Int(IntOffset::new(1, 0))),
event_time: Utc::now(),
headers: Default::default(),
id: MessageID {
Expand All @@ -65,10 +63,7 @@ mod tests {
Message {
keys: vec![],
value: b"Hello, World!".to_vec(),
offset: Offset {
offset: "2".to_string(),
partition_id: 0,
},
offset: Some(Offset::Int(IntOffset::new(1, 0))),
event_time: Utc::now(),
headers: Default::default(),
id: MessageID {
Expand Down

0 comments on commit 187398c

Please sign in to comment.