diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-12-07 00:10:29 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-12-07 00:10:29 -0800 |
| commit | eed87791b71c27b1d2fe42f5acb87aaf1af5811c (patch) | |
| tree | 24bc05c8674cad565c9d18043a3ac2b7f8f123bf /weed/s3api/s3api_server.go | |
| parent | 01e2da5782f7fb14fb4ba1350e0c1fa097557dcf (diff) | |
| download | seaweedfs-eed87791b71c27b1d2fe42f5acb87aaf1af5811c.tar.xz seaweedfs-eed87791b71c27b1d2fe42f5acb87aaf1af5811c.zip | |
s3: subscribe to s3.configure changes
Diffstat (limited to 'weed/s3api/s3api_server.go')
| -rw-r--r-- | weed/s3api/s3api_server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/s3api/s3api_server.go b/weed/s3api/s3api_server.go index 850a02171..18f8b563f 100644 --- a/weed/s3api/s3api_server.go +++ b/weed/s3api/s3api_server.go @@ -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 } |
