diff options
author | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-10-03 20:31:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 20:31:59 +0800 |
commit | 303b99663e963a520aaa44eca68e042d9fe230af (patch) | |
tree | 8913a0c5cc2e5578b43695e00f07f0bb6789d1a0 /cmd/swarm/db.go | |
parent | 14bef9a2dba1f6370c694779962e742e9853fdc6 (diff) | |
download | go-tangerine-303b99663e963a520aaa44eca68e042d9fe230af.tar go-tangerine-303b99663e963a520aaa44eca68e042d9fe230af.tar.gz go-tangerine-303b99663e963a520aaa44eca68e042d9fe230af.tar.bz2 go-tangerine-303b99663e963a520aaa44eca68e042d9fe230af.tar.lz go-tangerine-303b99663e963a520aaa44eca68e042d9fe230af.tar.xz go-tangerine-303b99663e963a520aaa44eca68e042d9fe230af.tar.zst go-tangerine-303b99663e963a520aaa44eca68e042d9fe230af.zip |
swarm: schemas and migrations (#17813)
Diffstat (limited to 'cmd/swarm/db.go')
-rw-r--r-- | cmd/swarm/db.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cmd/swarm/db.go b/cmd/swarm/db.go index fe03f2d16..107fbf100 100644 --- a/cmd/swarm/db.go +++ b/cmd/swarm/db.go @@ -93,21 +93,6 @@ func dbImport(ctx *cli.Context) { log.Info(fmt.Sprintf("successfully imported %d chunks", count)) } -func dbClean(ctx *cli.Context) { - args := ctx.Args() - if len(args) != 2 { - utils.Fatalf("invalid arguments, please specify <chunkdb> (path to a local chunk database) and the base key") - } - - store, err := openLDBStore(args[0], common.Hex2Bytes(args[1])) - if err != nil { - utils.Fatalf("error opening local chunk database: %s", err) - } - defer store.Close() - - store.Cleanup() -} - func openLDBStore(path string, basekey []byte) (*storage.LDBStore, error) { if _, err := os.Stat(filepath.Join(path, "CURRENT")); err != nil { return nil, fmt.Errorf("invalid chunkdb path: %s", err) |