Skip to content

Commit

Permalink
[PROTO-1477] Free up mediorum db space and remove unused code (#6852)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie authored Dec 5, 2023
1 parent f998d54 commit f59952c
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 612 deletions.
16 changes: 1 addition & 15 deletions mediorum/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
"strconv"

"github.com/AudiusProject/audius-protocol/mediorum/cmd/loadtest"
"github.com/AudiusProject/audius-protocol/mediorum/cmd/reaper"
"github.com/AudiusProject/audius-protocol/mediorum/cmd/segments"
"github.com/AudiusProject/audius-protocol/mediorum/registrar"
"github.com/AudiusProject/audius-protocol/mediorum/server"
)
Expand Down Expand Up @@ -74,19 +72,7 @@ func main() {
metricsCmd.Parse(os.Args[2:])
testClient := initClient()
loadtest.RunM(testClient)
case "segments":
segmentsCmd := flag.NewFlagSet("segments", flag.ExitOnError)
segmentsCmdDelete := segmentsCmd.Bool("delete", false, "Delete files and corresponding database rows if set to true")
segmentsCmd.Parse(os.Args[2:])

c := &segments.MediorumClientConfig{
Delete: *segmentsCmdDelete,
}

segments.Run(c)
case "reaper":
reaper.Run()
default:
log.Fatal("usage `$ mediorum-cmd <test [num]|metrics|segments|reaper>`")
log.Fatal("usage `$ mediorum-cmd <test [num]|metrics>`")
}
}
75 changes: 0 additions & 75 deletions mediorum/cmd/reaper/reaper.go

This file was deleted.

83 changes: 0 additions & 83 deletions mediorum/cmd/reaper/reaper_test.go

This file was deleted.

Loading

0 comments on commit f59952c

Please sign in to comment.