Skip to content

Commit

Permalink
refactor: remove couchbase implementation (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored and LexLuthr committed Jul 20, 2023
1 parent bd4174c commit c31a640
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 1,776 deletions.
301 changes: 0 additions & 301 deletions cmd/migrate-lid/couch-to-yuga.go

This file was deleted.

1 change: 0 additions & 1 deletion cmd/migrate-lid/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func main() {
migrateLevelDBCmd,
migrateYugabyteDBCmd,
migrateReverseCmd,
migrateCouchToYugaCmd,
},
}
app.Setup()
Expand Down
2 changes: 1 addition & 1 deletion extern/boostd-data/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var log = logging.Logger("boostd-data")
// This service exposes an RPC API that is called by boostd in order to manage
// boostd's data. The service provides different implementations of the data
// interface according to the technologies that a user chooses (eg leveldb vs
// couchbase)
// yugabyte)
func main() {
app := &cli.App{
Name: "boostd-data",
Expand Down
37 changes: 0 additions & 37 deletions extern/boostd-data/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"net/http"

"github.com/filecoin-project/boostd-data/couchbase"
"github.com/filecoin-project/boostd-data/shared/cliutil"
"github.com/filecoin-project/boostd-data/shared/tracing"
"github.com/filecoin-project/boostd-data/svc"
Expand All @@ -18,7 +17,6 @@ var runCmd = &cli.Command{
Name: "run",
Subcommands: []*cli.Command{
leveldbCmd,
couchbaseCmd,
yugabyteCmd,
},
}
Expand Down Expand Up @@ -73,41 +71,6 @@ var leveldbCmd = &cli.Command{
},
}

var couchbaseCmd = &cli.Command{
Name: "couchbase",
Usage: "Run boostd-data with a couchbase database",
Before: before,
Flags: append([]cli.Flag{
&cli.StringFlag{
Name: "connect-string",
Usage: "couchbase connect string eg 'couchbase://127.0.0.1'",
Required: true,
},
&cli.StringFlag{
Name: "username",
Required: true,
},
&cli.StringFlag{
Name: "password",
Required: true,
}},
runFlags...,
),
Action: func(cctx *cli.Context) error {
// Create a couchbase data service
settings := couchbase.DBSettings{
ConnectString: cctx.String("connect-string"),
Auth: couchbase.DBSettingsAuth{
Username: cctx.String("username"),
Password: cctx.String("password"),
},
}

bdsvc := svc.NewCouchbase(settings)
return runAction(cctx, "couchbase", bdsvc)
},
}

var yugabyteCmd = &cli.Command{
Name: "yugabyte",
Usage: "Run boostd-data with a yugabyte database",
Expand Down
Loading

0 comments on commit c31a640

Please sign in to comment.