s3: subscribe to s3.configure changes

This commit is contained in:
Chris Lu
2020-12-07 00:10:29 -08:00
parent 01e2da5782
commit eed87791b7
3 changed files with 83 additions and 8 deletions

View File

@@ -2,8 +2,10 @@ package s3api
import (
"fmt"
"github.com/chrislusf/seaweedfs/weed/filer"
"net/http"
"strings"
"time"
"github.com/gorilla/mux"
"google.golang.org/grpc"
@@ -32,6 +34,8 @@ func NewS3ApiServer(router *mux.Router, option *S3ApiServerOption) (s3ApiServer
s3ApiServer.registerRouter(router)
go s3ApiServer.subscribeMetaEvents("s3", filer.IamConfigDirecotry+"/"+filer.IamIdentityFile, time.Now().UnixNano())
return s3ApiServer, nil
}