Skip to content

Commit

Permalink
bulker: ingest: always use multithreaded topic
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Nov 15, 2023
1 parent a8b2477 commit be0be6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bulkerapp/app/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,11 @@ func (r *Router) IngestHandler(c *gin.Context) {
for _, destination := range stream.AsynchronousDestinations {
messageCopy := ingestMessage
messageCopy.ConnectionId = destination.ConnectionId
multithreading, ok := destination.Options["multithreading"].(bool)
//multithreading, ok := destination.Options["multithreading"].(bool)
multithreading := true
topic := r.config.KafkaDestinationsTopicName
messageKey := messageCopy.ConnectionId
if ok && multithreading {
if multithreading {
topic = r.config.KafkaDestinationsTopicMultiThreadedName
messageKey = uuid.New()
}
Expand Down

0 comments on commit be0be6c

Please sign in to comment.