Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

unused method

Chris Lu12825938d7fd
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go
index 8c3d4a5b1e..bbe41e6f7f 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)