Skip to content
Snippets Groups Projects

Resolve "Requesting information from the Controller via NBI takes very long"

All threads resolved!
5 files
+ 20
8
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -21,6 +21,7 @@ const (
jwtDurationKey = "defaultJWTDuration"
defaultJWTDuration = time.Hour * 24
jwtSecretKey = "jwtSecret"
gNMISubscriptionsFilePathKey = "gNMISubscriptionsPath"
// RabbitMQ Broker
amqpPrefixKey = "amqpPrefix"
@@ -72,6 +73,9 @@ var AMQPHost string
// AMQPPort is the amqp port
var AMQPPort string
// GNMISubscriptionsFilePath is the path to the file used for automated subscriptions
var GNMISubscriptionsFilePath string
// Init gets called on module import
func Init() {
err := InitializeConfig()
@@ -125,6 +129,8 @@ func InitializeConfig() error {
JWTSecret = viper.GetString(jwtSecretKey)
GNMISubscriptionsFilePath = getStringFromViper(gNMISubscriptionsFilePathKey)
loadAMQPConfig()
if err := viper.WriteConfig(); err != nil {
Loading