Update main.go to supp

This commit is contained in:
cr0bar 2024-09-18 09:25:51 +01:00 committed by GitHub
parent 1309979d1c
commit 372ccbe0c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,7 @@ type Config struct {
RefreshInterval int
MinimumFollowers int
ArchivalSync bool
Contact string
}
var pool *nostr.SimplePool
@ -77,6 +78,7 @@ func main() {
relay.Info.Name = config.RelayName
relay.Info.PubKey = config.RelayPubkey
relay.Info.Contact = config.Contact
relay.Info.Description = config.RelayDescription
relay.Info.Software = "WoT Relay"
relay.Info.Version = version
@ -197,6 +199,7 @@ func LoadConfig() Config {
RefreshInterval: refreshInterval,
MinimumFollowers: minimumFollowers,
ArchivalSync: getEnv("ARCHIVAL_SYNC") == "TRUE",
Contact: getEnv("CONTACT"),
}
return config