Skip to content

Commit

Permalink
Start raft and memberlist layers in NewEchoVault. Return error fron N…
Browse files Browse the repository at this point in the history
…ewEchoVault function when TLS config does not match certificate options provided
  • Loading branch information
kelvinmwinuka committed Apr 1, 2024
1 parent ede342a commit 389c871
Show file tree
Hide file tree
Showing 20 changed files with 1,154 additions and 1,154 deletions.
6 changes: 5 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ func main() {
cancelCh := make(chan os.Signal, 1)
signal.Notify(cancelCh, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)

server := echovault.NewEchoVault(
server, err := echovault.NewEchoVault(
echovault.WithContext(ctx),
echovault.WithConfig(conf),
echovault.WithCommands(commands.All()),
)

if err != nil {
log.Fatal(err)
}

go server.Start()

<-cancelCh
Expand Down
1,640 changes: 820 additions & 820 deletions coverage/coverage.out

Large diffs are not rendered by default.

Loading

0 comments on commit 389c871

Please sign in to comment.