Skip to content

Commit

Permalink
alternative entity delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Nov 4, 2024
1 parent cb1d8b2 commit 410332b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/consuming/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *KafkaConsumer) initClient() (*kgo.Client, error) {
kgo.InstanceID(c.getInstanceID()),
}
if c.config.TLS.Enabled {
tlsConfig, err := c.config.TLS.ToGoTLSConfig("kafka_" + c.name)
tlsConfig, err := c.config.TLS.ToGoTLSConfig("kafka:" + c.name)
if err != nil {
return nil, fmt.Errorf("error making TLS configuration: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/consuming/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewPostgresConsumer(name string, logger Logger, dispatcher Dispatcher, conf
return nil, fmt.Errorf("error parsing postgresql DSN: %w", err)
}
if config.TLS.Enabled {
tlsConfig, err := config.TLS.ToGoTLSConfig("postgresql_" + name)
tlsConfig, err := config.TLS.ToGoTLSConfig("postgresql:" + name)
if err != nil {
return nil, fmt.Errorf("error creating postgresql TLS config: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/proxy/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func getDialOpts(p Config) ([]grpc.DialOption, error) {
}))
}
if p.GRPC.TLS.Enabled {
tlsConfig, err := p.GRPC.TLS.ToGoTLSConfig("proxy_grpc_" + p.Name)
tlsConfig, err := p.GRPC.TLS.ToGoTLSConfig("proxy_grpc:" + p.Name)
if err != nil {
return nil, fmt.Errorf("failed to create TLS config %v", err)
}
Expand Down

0 comments on commit 410332b

Please sign in to comment.