mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-04 02:57:44 +01:00
s3tables: clean up unused code and improve error response formatting
This commit is contained in:
1 parent
b30631c3b5
commit
08ee4e37d8
2 files changed
+8
-15
No files matched your search
@@ -45,14 +45,9 @@ type S3TablesApiServer struct {
|
||||
|
||||
// NewS3TablesApiServer creates a new S3 Tables API server
|
||||
func NewS3TablesApiServer(s3a *S3ApiServer) *S3TablesApiServer {
|
||||
filerAddr := ""
|
||||
if len(s3a.option.Filers) > 0 {
|
||||
filerAddr = string(s3a.option.Filers[0])
|
||||
}
|
||||
|
||||
return &S3TablesApiServer{
|
||||
s3a: s3a,
|
||||
handler: s3tables.NewS3TablesHandler(filerAddr),
|
||||
handler: s3tables.NewS3TablesHandler(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user