Skip to content

Commit

Permalink
change to original eventapimanger naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Dec 2, 2024
1 parent 82e7868 commit 8ffc17d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eventing/kafka/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/go-kratos/kratos/v2/log"
"github.com/google/uuid"
eventingapi "github.com/project-kessel/inventory-api/eventing/api"
api "github.com/project-kessel/inventory-api/eventing/api"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric"
Expand Down Expand Up @@ -93,7 +93,7 @@ func (m *KafkaManager) Errs() <-chan error {
}

// Lookup figures out which topic should be used for the given identity and resource.
func (m *KafkaManager) Lookup(identity *authnapi.Identity, resource_type string, resource_id uuid.UUID) (eventingapi.Producer, error) {
func (m *KafkaManager) Lookup(identity *authnapi.Identity, resource_type string, resource_id uuid.UUID) (api.Producer, error) {

// there is no complicated topic dispatch logic... for now.
producer, err := NewProducer(m, m.Config.DefaultTopic, identity)
Expand Down Expand Up @@ -139,7 +139,7 @@ func NewProducer(manager *KafkaManager, topic string, identity *authnapi.Identit
}

// Produce creates the cloud event and sends it on the Kafka Topic
func (p *kafkaProducer) Produce(ctx context.Context, event *eventingapi.Event) error {
func (p *kafkaProducer) Produce(ctx context.Context, event *api.Event) error {
e := cloudevents.NewEvent()

e.SetSpecVersion(cloudevents.VersionV1)
Expand Down

0 comments on commit 8ffc17d

Please sign in to comment.