diff --git a/rust-connector-sdk/src/connector.rs b/rust-connector-sdk/src/connector.rs index 978dac16..87ad656e 100644 --- a/rust-connector-sdk/src/connector.rs +++ b/rust-connector-sdk/src/connector.rs @@ -190,11 +190,11 @@ pub trait Connector { type State; /// Creates the region configuration map - fn make_region_configuration_map( + async fn make_region_configuration_map( _raw_config: &Self::RawConfiguration, - ) -> HashMap> { + ) -> Result>, ValidateError> { // Defaults to an empty map - HashMap::new() + Ok(HashMap::new()) } fn make_empty_configuration() -> Self::RawConfiguration; @@ -295,10 +295,8 @@ pub enum ConnectorMode { } #[derive(Serialize, Deserialize)] -#[serde( - bound = "::Configuration: Serialize, ::Configuration: DeserializeOwned" -)] +#[serde(bound = "C::Configuration: Serialize, C::Configuration: DeserializeOwned")] pub struct RegionConfiguration { - pub config: ::Configuration, + pub config: C::Configuration, pub mode: ConnectorMode, }