Skip to content

Commit

Permalink
Add source field to RequestUrlCollectorStream (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
dayeon5470 committed Jan 5, 2024
1 parent bdabae7 commit 8b44497
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,10 @@ mod tests {
assert_eq!(req_data, bincode::serialize(&crusher_req).unwrap());

// send/recv url collector stream request
let url_collector_req = RequestUrlCollectorStream { start: 0 };
let url_collector_req = RequestUrlCollectorStream {
start: 0,
source: Some("hello".to_string()),
};
super::send_stream_request(
&mut channel.client.send,
super::stream::RequestStreamRecord::Http,
Expand Down
1 change: 1 addition & 0 deletions src/publish/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,5 @@ pub struct RequestCrusherStream {
#[allow(clippy::module_name_repetitions)]
pub struct RequestUrlCollectorStream {
pub start: i64,
pub source: Option<String>,
}

0 comments on commit 8b44497

Please sign in to comment.