Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sehz committed Oct 29, 2024
1 parent 2385330 commit a95a8ab
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 41 deletions.
6 changes: 2 additions & 4 deletions crates/fluvio-spu/src/mirroring/home/home_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::convert::TryInto;
use tracing::trace;

use fluvio_protocol::bytes::Buf;
use fluvio_protocol::{Encoder, Decoder};
use fluvio_protocol::Decoder;
use fluvio_protocol::api::{RequestMessage, ApiMessage, RequestHeader};

use crate::mirroring::remote::sync::DefaultPartitionSyncRequest;
Expand All @@ -13,11 +13,9 @@ use super::api_key::MirrorHomeApiEnum;
use super::update_offsets::UpdateHomeOffsetRequest;

/// Requests from home to remote
#[derive(Debug, Encoder)]
#[derive(Debug)]
pub enum HomeMirrorRequest {
#[fluvio(tag = 0)]
UpdateHomeOffset(RequestMessage<UpdateHomeOffsetRequest>),
#[fluvio(tag = 1)]
SyncRecords(RequestMessage<DefaultPartitionSyncRequest>),
}

Expand Down
Loading

0 comments on commit a95a8ab

Please sign in to comment.