chore: exit application if clickhouse is not reachable (#308)

This commit is contained in:
Ankit Nayan 2021-09-27 23:20:27 +05:30 committed by GitHub
parent ade8cda91c
commit 6a01ce88cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ func NewReader() *ClickHouseReader {
if err != nil { if err != nil {
zap.S().Error(err) zap.S().Error(err)
os.Exit(1)
} }
logLevel := promlog.AllowedLevel{} logLevel := promlog.AllowedLevel{}