aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_handlers.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-07-21 18:50:56 -0700
committerChris Lu <chris.lu@gmail.com>2018-07-21 18:50:56 -0700
commit12825938d7fd1313b5f0506e1226ae562f00dc2a (patch)
tree339de58c4bf36a93d6bf699bbbece051e5774349 /weed/s3api/s3api_handlers.go
parent8f240276db2ff1a23d54c9731c3de1e0859a20c1 (diff)
downloadseaweedfs-12825938d7fd1313b5f0506e1226ae562f00dc2a.tar.xz
seaweedfs-12825938d7fd1313b5f0506e1226ae562f00dc2a.zip
unused method
Diffstat (limited to 'weed/s3api/s3api_handlers.go')
-rw-r--r--weed/s3api/s3api_handlers.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go
index 8c3d4a5b1..bbe41e6f7 100644
--- a/weed/s3api/s3api_handlers.go
+++ b/weed/s3api/s3api_handlers.go
@@ -36,11 +36,6 @@ func encodeResponse(response interface{}) []byte {
return bytesBuffer.Bytes()
}
-func newContext(r *http.Request, api string) context.Context {
- vars := mux.Vars(r)
- return context.WithValue(context.Background(), "bucket", vars["bucket"])
-}
-
func (s3a *S3ApiServer) withFilerClient(fn func(filer_pb.SeaweedFilerClient) error) error {
grpcConnection, err := util.GrpcDial(s3a.option.FilerGrpcAddress)