Skip to content

Commit

Permalink
Simplify type conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks authored and ebroberson committed Mar 4, 2024
1 parent 0230997 commit a030026
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,7 @@ func messageBusServersFromSchema(servers []MessageBusServerSchema) ([]MessageBus
for _, m := range servers {
messageBusServers = append(
messageBusServers,
MessageBusServer{
Host: m.Host,
User: m.User,
Password: m.Password,
},
MessageBusServer(m),
)
}

Expand Down Expand Up @@ -449,10 +445,5 @@ func routingAPIFromSchema(api RoutingAPISchema) (*RoutingAPI, error) {
}

func clientTLSConfigFromSchema(clientTLSConfigSchema ClientTLSConfigSchema) ClientTLSConfig {
return ClientTLSConfig{
Enabled: clientTLSConfigSchema.Enabled,
CertPath: clientTLSConfigSchema.CertPath,
KeyPath: clientTLSConfigSchema.KeyPath,
CAPath: clientTLSConfigSchema.CAPath,
}
return ClientTLSConfig(clientTLSConfigSchema)
}

0 comments on commit a030026

Please sign in to comment.