Skip to content

Commit fdc798c

Browse files
authored
Merge pull request #40 from bio-routing/ogh/NET-1221
Make success of schema creation optional
2 parents 34f5300 + 755d87f commit fdc798c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pkg/clickhousegw/clickhousegw.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/ClickHouse/clickhouse-go"
1414

1515
bnet "github.com/bio-routing/bio-rd/net"
16+
log "github.com/sirupsen/logrus"
1617
)
1718

1819
const tableName = "flows"
@@ -60,7 +61,7 @@ func New(cfg *ClickhouseConfig) (*ClickHouseGateway, error) {
6061

6162
err = chgw.createFlowsSchemaIfNotExists()
6263
if err != nil {
63-
return nil, errors.Wrap(err, "Unable to create flows schema")
64+
log.Errorf("Unable to create flows schema: %v", err)
6465
}
6566

6667
return chgw, nil

pkg/frontend/bindata.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)