mirror of
https://github.com/mumble-voip/grumble.git
synced 2026-01-10 03:52:00 -08:00
pkg/blobstore: modernize the blobstore package.
This commit is contained in:
parent
8effbbc6b3
commit
3dc3b25f57
10 changed files with 244 additions and 409 deletions
|
|
@ -14,7 +14,6 @@ import (
|
|||
"errors"
|
||||
"log"
|
||||
"mumbleapp.com/grumble/pkg/ban"
|
||||
"mumbleapp.com/grumble/pkg/blobstore"
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
|
@ -148,7 +147,7 @@ func populateChannelInfoFromDatabase(server *Server, c *Channel, db *sql.DB) err
|
|||
}
|
||||
|
||||
if len(description) > 0 {
|
||||
key, err := blobstore.Put([]byte(description))
|
||||
key, err := blobStore.Put([]byte(description))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -428,7 +427,7 @@ func populateUsers(server *Server, db *sql.DB) (err error) {
|
|||
}
|
||||
|
||||
if len(Texture) > 0 {
|
||||
key, err := blobstore.Put(Texture)
|
||||
key, err := blobStore.Put(Texture)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -468,7 +467,7 @@ func populateUsers(server *Server, db *sql.DB) (err error) {
|
|||
case UserInfoEmail:
|
||||
user.Email = Value
|
||||
case UserInfoComment:
|
||||
key, err := blobstore.Put([]byte(Value))
|
||||
key, err := blobStore.Put([]byte(Value))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue