mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-06 19:07:50 +00:00
add panic if Atoi on DefaultGossipPort fails
This commit is contained in:
parent
32d07fc9e1
commit
4fc2494cc0
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ func PilosaCluster(c *pilosa.Config) *pilosa.Cluster {
|
|||
case "gossip":
|
||||
gport, err := strconv.Atoi(pilosa.DefaultGossipPort)
|
||||
if err != nil {
|
||||
// what?
|
||||
panic(err) // Atoi on a compile-time constant should never fail.
|
||||
}
|
||||
gossipPort := gport
|
||||
gossipSeed := pilosa.DefaultHost
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue