mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 03:09:26 +08:00
Chore: Remove public vars in setting package (#81018)
Removes the public variable setting.SecretKey plus some other ones. Introduces some new functions for creating setting.Cfg.
This commit is contained in:

committed by
GitHub

parent
147bf01745
commit
6768c6c059
@ -17,7 +17,7 @@ func TestUploadToS3(t *testing.T) {
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
s3Uploader, err := NewImageUploader()
|
||||
s3Uploader, err := NewImageUploader(cfg)
|
||||
require.NoError(t, err)
|
||||
|
||||
path, err := s3Uploader.Upload(context.Background(), "../../../public/img/logo_transparent_400x.png")
|
||||
|
Reference in New Issue
Block a user