Skip to content

Commit

Permalink
Fix imports again :)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Jul 4, 2023
1 parent 93f94c5 commit 99aa033
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/invoker/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::time::Duration;

use restate_hyper_util::proxy_connector::Proxy;
use restate_service_metadata::ServiceEndpointRegistry;
use restate_types::journal::raw::{PlainRawEntry, RawEntryCodec};
use restate_types::journal::raw::PlainRawEntry;
use restate_types::retries::RetryPolicy;
use serde_with::serde_as;

Expand Down
4 changes: 2 additions & 2 deletions src/invoker/src/service/input_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use crate::{
};
use futures::future::BoxFuture;
use futures::FutureExt;
use restate_common::journal::Completion;
use restate_common::types::{EntryIndex, PartitionLeaderEpoch, ServiceInvocationId};
use restate_types::identifiers::{EntryIndex, PartitionLeaderEpoch, ServiceInvocationId};
use restate_types::journal::Completion;
use tokio::sync::mpsc;

// -- Input messages
Expand Down
2 changes: 0 additions & 2 deletions src/invoker/src/service/invocation_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ impl InvocationStateMachine {
mod tests {
use super::*;

use restate_types::retry_policy::RetryPolicy;
use restate_test_util::{check, test};
use restate_types::retries::RetryPolicy;
use std::time::Duration;

#[test]
Expand Down
14 changes: 10 additions & 4 deletions src/invoker/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ use drain::ReleaseShutdown;
use input_command::{InputCommand, InvokeCommand};
use invocation_state_machine::InvocationStateMachine;
use invocation_task::{InvocationTaskOutput, InvocationTaskOutputInner};
use restate_errors::warn_it;
use restate_hyper_util::proxy_connector::{Proxy, ProxyConnector};
use restate_queue::SegmentQueue;
use restate_service_metadata::ServiceEndpointRegistry;
use restate_timer_queue::TimerQueue;
use restate_types::errors::{InvocationError, InvocationErrorCode, UserErrorCode};
use restate_types::identifiers::ServiceInvocationId;
use restate_types::identifiers::{EntryIndex, PartitionLeaderEpoch};
use restate_types::journal::enriched::EnrichedRawEntry;
use restate_types::journal::Completion;
use restate_types::retries::RetryPolicy;
use restate_types::service_endpoint::{EndpointMetadata, ProtocolType};
use std::collections::{HashMap, HashSet};
use std::future::Future;
use std::path::PathBuf;
Expand Down Expand Up @@ -504,7 +507,7 @@ where
restate.invocation.sid = %service_invocation_id,
restate.invoker.partition_leader_epoch = ?partition,
restate.journal.index = entry_index,
restate.journal.entry_type = ?entry.header.to_entry_type(),
restate.journal.entry_type = ?entry.ty(),
)
)]
async fn handle_new_entry(
Expand Down Expand Up @@ -905,13 +908,16 @@ mod tests {
use bytes::Bytes;
use quota::InvokerConcurrencyQuota;
use restate_service_metadata::InMemoryServiceEndpointRegistry;
use restate_test_util::{check, test};
use std::future::{pending, ready};
use tempfile::tempdir;
use restate_test_util::{check, let_assert, test};
use restate_types::identifiers::InvocationId;
use restate_types::identifiers::ServiceInvocationId;
use restate_types::journal::enriched::EnrichedEntryHeader;
use restate_types::journal::raw::RawEntry;
use restate_types::retries::RetryPolicy;
use restate_types::service_endpoint::{EndpointMetadata, ProtocolType};
use std::future::{pending, ready};
use std::time::Duration;
use tempfile::tempdir;
use tokio::sync::mpsc;

// -- Mocks
Expand Down

0 comments on commit 99aa033

Please sign in to comment.