Skip to content

Commit

Permalink
fixup! go/keymanager: Add support for multiple nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yawning committed Jun 13, 2019
1 parent 3a74afc commit 7bdb8a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 243 deletions.
5 changes: 1 addition & 4 deletions go/keymanager/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

epochtime "github.com/oasislabs/ekiden/go/epochtime/api"
"github.com/oasislabs/ekiden/go/keymanager/api"
"github.com/oasislabs/ekiden/go/keymanager/memory"
"github.com/oasislabs/ekiden/go/keymanager/tendermint"
registry "github.com/oasislabs/ekiden/go/registry/api"
"github.com/oasislabs/ekiden/go/tendermint/service"
Expand All @@ -34,8 +33,6 @@ func New(
)

switch strings.ToLower(backend) {
case memory.BackendName:
impl, err = memory.New(ctx, registry)
case tendermint.BackendName:
impl, err = tendermint.New(ctx, timeSource, service)
default:
Expand All @@ -48,7 +45,7 @@ func New(
// RegisterFlags registers the configuration flags with the provided command.
func RegisterFlags(cmd *cobra.Command) {
if !cmd.Flags().Parsed() {
cmd.Flags().String(cfgBackend, memory.BackendName, "Key manager backend")
cmd.Flags().String(cfgBackend, tendermint.BackendName, "Key manager backend")
}

for _, v := range []string{
Expand Down
239 changes: 0 additions & 239 deletions go/keymanager/memory/memory.go

This file was deleted.

0 comments on commit 7bdb8a5

Please sign in to comment.