mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 09:50:39 +01:00
add IsResourceHeavy() to command interface
This commit is contained in:
1 parent
dad3a26fb6
commit
701abbb9df
73 files changed
+295
-2
No files matched your search
@@ -34,6 +34,10 @@ func (c *commandS3CleanUploads) Help() string {
|
||||
`
|
||||
}
|
||||
|
||||
func (c *commandS3CleanUploads) IsResourceHeavy() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *commandS3CleanUploads) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
|
||||
bucketCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
|
||||
uploadedTimeAgo := bucketCommand.Duration("timeAgo", 24*time.Hour, "created time before now. \"1.5h\" or \"2h45m\". Valid time units are \"m\", \"h\"")
|
||||
|
||||
Reference in new issue
Block a user