mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
add support for delayed quota update
If there are a lot of close uploads, accumulating quota updates can save you many queries to the data provider
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/jwtauth/v5"
|
||||
"github.com/lestrrat-go/jwx/jwa"
|
||||
|
||||
"github.com/drakkan/sftpgo/common"
|
||||
"github.com/drakkan/sftpgo/dataprovider"
|
||||
@@ -250,7 +251,7 @@ func (c *Conf) Initialize(configDir string) error {
|
||||
certMgr = mgr
|
||||
}
|
||||
|
||||
csrfTokenAuth = jwtauth.New("HS256", utils.GenerateRandomBytes(32), nil)
|
||||
csrfTokenAuth = jwtauth.New(jwa.HS256.String(), utils.GenerateRandomBytes(32), nil)
|
||||
|
||||
exitChannel := make(chan error, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user