fix: disable resty warnings

This commit is contained in:
Derrick Hammer 2024-01-15 14:45:35 -05:00
parent 0cd60b7db0
commit 387ec56bec
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ func (s StorageServiceImpl) PutFile(file io.ReadSeeker, bucket string, generateP
func (s *StorageServiceImpl) Init() { func (s *StorageServiceImpl) Init() {
client := resty.New() client := resty.New()
client.SetDisableWarn(true)
client.SetBaseURL(s.portal.Config().GetString("core.sia.url")) client.SetBaseURL(s.portal.Config().GetString("core.sia.url"))
client.SetBasicAuth("", s.portal.Config().GetString("core.sia.key")) client.SetBasicAuth("", s.portal.Config().GetString("core.sia.key"))