@ -143,24 +143,24 @@ func NewStorage(typStr string, cfg interface{}) (ObjectStorage, error) {
func initAvatars ( ) ( err error ) {
func initAvatars ( ) ( err error ) {
log . Info ( "Initialising Avatar storage with type: %s" , setting . Avatar . Storage . Type )
log . Info ( "Initialising Avatar storage with type: %s" , setting . Avatar . Storage . Type )
Avatars , err = NewStorage ( setting . Avatar . Storage . Type , setting . Avatar . Storage )
Avatars , err = NewStorage ( setting . Avatar . Storage . Type , & setting . Avatar . Storage )
return
return
}
}
func initAttachments ( ) ( err error ) {
func initAttachments ( ) ( err error ) {
log . Info ( "Initialising Attachment storage with type: %s" , setting . Attachment . Storage . Type )
log . Info ( "Initialising Attachment storage with type: %s" , setting . Attachment . Storage . Type )
Attachments , err = NewStorage ( setting . Attachment . Storage . Type , setting . Attachment . Storage )
Attachments , err = NewStorage ( setting . Attachment . Storage . Type , & setting . Attachment . Storage )
return
return
}
}
func initLFS ( ) ( err error ) {
func initLFS ( ) ( err error ) {
log . Info ( "Initialising LFS storage with type: %s" , setting . LFS . Storage . Type )
log . Info ( "Initialising LFS storage with type: %s" , setting . LFS . Storage . Type )
LFS , err = NewStorage ( setting . LFS . Storage . Type , setting . LFS . Storage )
LFS , err = NewStorage ( setting . LFS . Storage . Type , & setting . LFS . Storage )
return
return
}
}
func initRepoAvatars ( ) ( err error ) {
func initRepoAvatars ( ) ( err error ) {
log . Info ( "Initialising Repository Avatar storage with type: %s" , setting . RepoAvatar . Storage . Type )
log . Info ( "Initialising Repository Avatar storage with type: %s" , setting . RepoAvatar . Storage . Type )
RepoAvatars , err = NewStorage ( setting . RepoAvatar . Storage . Type , setting . RepoAvatar . Storage )
RepoAvatars , err = NewStorage ( setting . RepoAvatar . Storage . Type , & setting . RepoAvatar . Storage )
return
return
}
}