🚚 Rename protobuf
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"git.solsynth.dev/hypernet/nexus/pkg/internal/database"
|
||||
"git.solsynth.dev/hypernet/nexus/pkg/internal/http"
|
||||
"git.solsynth.dev/hypernet/nexus/pkg/internal/kv"
|
||||
"github.com/fatih/color"
|
||||
"os"
|
||||
"os/signal"
|
||||
@@ -45,6 +46,12 @@ func main() {
|
||||
log.Panic().Err(err).Msg("An error occurred when loading settings.")
|
||||
}
|
||||
|
||||
// Connect to kv (etcd)
|
||||
if err := kv.ConnectEtcd(viper.GetStringSlice("kv.endpoints")); err != nil {
|
||||
log.Error().Err(err).Msg("An error occurred when connecting to kv (etcd), please check your configuration in kv section.")
|
||||
log.Fatal().Msg("Kv is required for service discovery and directory feature, cannot be disabled.")
|
||||
}
|
||||
|
||||
// Connect to database
|
||||
if db, err := database.Connect(viper.GetString("database.dsn")); err != nil {
|
||||
log.Error().Err(err).Msg("An error occurred when connecting to database. Database related features will be disabled.")
|
||||
|
Reference in New Issue
Block a user