fix ldflags for goreleaser

This commit is contained in:
Amarpreet Minhas 2024-10-28 20:37:13 -04:00
parent 6269731c92
commit 4888b386ae

View file

@ -13,12 +13,12 @@ import (
) )
var ( var (
Version string version string
) )
func main() { func main() {
l := gologger.Get(config.GetConfig().LogLevel).With().Caller().Logger() l := gologger.Get(config.GetConfig().LogLevel).With().Caller().Logger()
l.Debug().Msgf("starting well-goknown v%s", Version) l.Debug().Msgf("starting well-goknown v%s", version)
db, _ := db.NewDB() db, _ := db.NewDB()
defer db.Close() defer db.Close()
@ -28,7 +28,7 @@ func main() {
if err := nostr.RelayDb.Init(); err != nil { if err := nostr.RelayDb.Init(); err != nil {
l.Panic().Msgf("unable to connect to relay db: %s", err.Error()) l.Panic().Msgf("unable to connect to relay db: %s", err.Error())
} }
relay := nostr.NewRelay(Version) relay := nostr.NewRelay(version)
// matrix endpoints // matrix endpoints
l.Debug().Msg("enabling matrix well-known endpoints") l.Debug().Msg("enabling matrix well-known endpoints")