mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-15 06:20:29 +02:00
Use a more general db client factory approach.
This commit is contained in:
@ -83,7 +83,12 @@ func main() {
|
||||
colors.TransparentDim = common.Clamp32f(
|
||||
float32(transparentDim/100.0), 0.0, 100.0)
|
||||
|
||||
client, err := common.CreateDBClientCreator(host, port)()
|
||||
cf, err := common.CreateDBClientFactory(host, port)
|
||||
if err != nil {
|
||||
log.Fatalf("error: %v\n", err)
|
||||
}
|
||||
|
||||
client, err := cf.Create()
|
||||
if err != nil {
|
||||
log.Fatalf("Cannot connect to '%s:%d': %s", host, port, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user