Skip to content

Commit 7507196

Browse files
authored
Merge branch 'main' into fix/idle-state-template-api-prefix
2 parents 52345d8 + 993fa36 commit 7507196

26 files changed

Lines changed: 6189 additions & 2281 deletions

File tree

rust/otap-dataflow/crates/config/src/node.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use crate::error::Error;
1212
use crate::pipeline::telemetry::{AttributeValue, TelemetryAttribute};
1313
use crate::transport_headers_policy::{HeaderCapturePolicy, HeaderPropagationPolicy};
14-
use crate::{CapabilityId, Description, NodeId, NodeUrn, PortName};
14+
use crate::{CapabilityId, Description, ExtensionId, NodeUrn, PortName};
1515
use schemars::JsonSchema;
1616
use serde::{Deserialize, Serialize};
1717
use serde_json::Value;
@@ -25,7 +25,7 @@ use std::collections::HashMap;
2525
/// and returns an error so the user gets immediate feedback.
2626
fn deserialize_no_dup_keys<'de, D>(
2727
deserializer: D,
28-
) -> Result<HashMap<CapabilityId, NodeId>, D::Error>
28+
) -> Result<HashMap<CapabilityId, ExtensionId>, D::Error>
2929
where
3030
D: serde::Deserializer<'de>,
3131
{
@@ -35,7 +35,7 @@ where
3535
struct NoDupVisitor;
3636

3737
impl<'de> Visitor<'de> for NoDupVisitor {
38-
type Value = HashMap<CapabilityId, NodeId>;
38+
type Value = HashMap<CapabilityId, ExtensionId>;
3939

4040
fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
4141
f.write_str("a map with no duplicate keys")
@@ -49,7 +49,7 @@ where
4949
"duplicate capability key '{key}'"
5050
)));
5151
}
52-
let _ = result.insert(CapabilityId::from(key), NodeId::from(value));
52+
let _ = result.insert(CapabilityId::from(key), ExtensionId::from(value));
5353
}
5454
Ok(result)
5555
}
@@ -115,7 +115,7 @@ pub struct NodeUserConfig {
115115
skip_serializing_if = "HashMap::is_empty",
116116
deserialize_with = "deserialize_no_dup_keys"
117117
)]
118-
pub capabilities: HashMap<CapabilityId, NodeId>,
118+
pub capabilities: HashMap<CapabilityId, ExtensionId>,
119119

120120
/// Entity configuration for the node.
121121
///

0 commit comments

Comments
 (0)