Skip to content

Commit

Permalink
Remove unnecessary interface in service/nodes.go
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski committed Jan 25, 2023
1 parent 1af31a0 commit 65242d8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions service/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import (
"hash/fnv"
"strings"

"gonum.org/v1/gonum/graph"

"go.opentelemetry.io/collector/component"
)

Expand All @@ -36,13 +34,6 @@ func newNodeID(parts ...string) nodeID {
return nodeID(h.Sum64())
}

type componentNode interface {
component.Component
graph.Node
}

var _ componentNode = &receiverNode{}

// A receiver instance can be shared by multiple pipelines of the same type.
// Therefore, nodeID is derived from "pipeline type" and "component ID".
type receiverNode struct {
Expand All @@ -60,8 +51,6 @@ func newReceiverNode(pipelineID component.ID, recvID component.ID) *receiverNode
}
}

var _ componentNode = &processorNode{}

// Every processor instance is unique to one pipeline.
// Therefore, nodeID is derived from "pipeline ID" and "component ID".
type processorNode struct {
Expand All @@ -79,8 +68,6 @@ func newProcessorNode(pipelineID, procID component.ID) *processorNode {
}
}

var _ componentNode = &exporterNode{}

// An exporter instance can be shared by multiple pipelines of the same type.
// Therefore, nodeID is derived from "pipeline type" and "component ID".
type exporterNode struct {
Expand All @@ -98,8 +85,6 @@ func newExporterNode(pipelineID component.ID, exprID component.ID) *exporterNode
}
}

var _ componentNode = &connectorNode{}

// A connector instance connects one pipeline type to one other pipeline type.
// Therefore, nodeID is derived from "exporter pipeline type", "receiver pipeline type", and "component ID".
type connectorNode struct {
Expand Down

0 comments on commit 65242d8

Please sign in to comment.