mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 13:27:57 +08:00
s3: subscribe to s3.configure changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user