mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-23 06:54:20 +01:00
initiate sys before using it.
fixes https://github.com/fiatjaf/njump/issues/65
This commit is contained in:
6
main.go
6
main.go
@@ -54,6 +54,9 @@ func main() {
|
||||
s.TrustedPubKeys = defaultTrustedPubKeys
|
||||
}
|
||||
|
||||
// eventstore and nostr system
|
||||
defer initSystem()()
|
||||
|
||||
if s.RelayConfigPath != "" {
|
||||
configr, err := os.ReadFile(s.RelayConfigPath)
|
||||
if err != nil {
|
||||
@@ -104,9 +107,6 @@ func main() {
|
||||
// internal db
|
||||
defer cache.initializeCache()()
|
||||
|
||||
// eventstore and nostr system
|
||||
defer initSystem()()
|
||||
|
||||
// initialize routines
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
Reference in New Issue
Block a user