From 387ec56bec96ece555f690f70d0dbd2268129d1e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 15 Jan 2024 14:45:35 -0500 Subject: [PATCH] fix: disable resty warnings --- storage/storage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/storage.go b/storage/storage.go index c6a3bee..194ec8d 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -68,6 +68,7 @@ func (s StorageServiceImpl) PutFile(file io.ReadSeeker, bucket string, generateP func (s *StorageServiceImpl) Init() { client := resty.New() + client.SetDisableWarn(true) client.SetBaseURL(s.portal.Config().GetString("core.sia.url")) client.SetBasicAuth("", s.portal.Config().GetString("core.sia.key"))