Skip to content

Commit a9a0f06

Browse files
Fix component type in From<FederationUpstreamParams<'a>> for RuntimeParameterDefinition<'a>
1 parent 748e515 commit a9a0f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/requests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ pub struct BulkUserDelete<'a> {
372372
pub type RuntimeParameterValue = Map<String, Value>;
373373

374374
/// Represents a [runtime parameter](https://rabbitmq.com/docs/parameters/).
375-
#[derive(Serialize, Deserialize)]
375+
#[derive(Serialize, Deserialize, Debug, Clone)]
376376
pub struct RuntimeParameterDefinition<'a> {
377377
pub name: &'a str,
378378
pub vhost: &'a str,
@@ -582,7 +582,7 @@ impl<'a> From<FederationUpstreamParams<'a>> for RuntimeParameterDefinition<'a> {
582582
Self {
583583
name: params.name,
584584
vhost: params.vhost,
585-
component: SHOVEL_COMPONENT,
585+
component: FEDERATION_UPSTREAM_COMPONENT,
586586
value,
587587
}
588588
}

0 commit comments

Comments
 (0)