Skip to content

Commit

Permalink
Fixing race condition (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski authored Jan 15, 2025
1 parent 091eabb commit 4ffb5c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quesma/v2/core/quesma_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (quesma *Quesma) buildInternal() (QuesmaBuilder, error) {
if info.pipelineIndex == pipelineIndex && info.connIndex == connIndex {
continue
}
quesma.dependencies.Logger().Info().Msgf("Sharing frontend connector %v with %v", sharedFc.InstanceName(), conn.InstanceName())
quesma.dependencies.Logger().Info().Msgf("Sharing frontend connector %p with %p", sharedFc, pipeline.GetFrontendConnectors()[connIndex])
pipeline.GetFrontendConnectors()[connIndex] = sharedFc
}
}
Expand Down
2 changes: 1 addition & 1 deletion quesma/v2/core/quesma_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (p *Pipeline) Start() {
// because we are copying routing table from all connectors
// however, bind error remains
for _, conn := range p.FrontendConnectors {
p.logger.Info().Msgf("Starting frontend connector %s", conn)
p.logger.Info().Msgf("Starting frontend connector %s", conn.GetEndpoint())
go conn.Listen()
}
}
Expand Down

0 comments on commit 4ffb5c9

Please sign in to comment.