Skip to content

Commit 6b8f351

Browse files
author
Barthelemy Vessemont
committed
killing memandra if unable to connect during startup
1 parent e11667c commit 6b8f351

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

memandra.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ func main() {
7171
h2 = handlers.NilHandler
7272

7373
// Init Cassandra connection in handler
74-
cassandra.InitCassandraConn()
74+
if err := cassandra.InitCassandraConn(); err != nil {
75+
log.Fatal(err)
76+
}
7577

7678
l := server.TCPListener(viper.GetInt("ListenPort"))
7779
ps := []protocol.Components{binprot.Components, textprot.Components}

0 commit comments

Comments
 (0)