Skip to content

Commit

Permalink
fix: create collections only when database is enabled (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariofaccin authored May 15, 2024
1 parent 069dd9e commit fb87c92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ func (amf *AMF) Start() {
go StartGrpcServer(self.SctpGrpcPort)
}

go context.SetupAmfCollection()
if self.EnableDbStore {
go context.SetupAmfCollection()
}

signalChannel := make(chan os.Signal, 1)
signal.Notify(signalChannel, os.Interrupt, syscall.SIGTERM)
Expand Down

0 comments on commit fb87c92

Please sign in to comment.