fix: disable resty warnings
This commit is contained in:
parent
0cd60b7db0
commit
387ec56bec
|
@ -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"))
|
||||||
|
|
Loading…
Reference in New Issue