Skip to content

Commit

Permalink
remove remotedb (#121)
Browse files Browse the repository at this point in the history
* remove remotedb

* Update Makefile

* Update Makefile

* changelog

* better changelog

---------

Co-authored-by: Adi Seredinschi <[email protected]>
  • Loading branch information
faddat and adizere authored Jan 23, 2024
1 parent d03785d commit b15320b
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 3,310 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/breaking-changes/118-remove-remotedb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Removed supprot for RemoteDB ([\#118](https://github.com/cometbft/cometbft-
db/issues/118))
27 changes: 0 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ ifeq (1,$(NON_INTERACTIVE))
DOCKER_TEST_INTERACTIVE_FLAGS :=
endif

export GO111MODULE = on

all: lint test

### go tests
Expand Down Expand Up @@ -90,31 +88,6 @@ tools:
go get -v $(GOTOOLS)
.PHONY: tools

# generates certificates for TLS testing in remotedb
gen_certs: clean_certs
certstrap init --common-name "cometbft.com" --passphrase ""
certstrap request-cert --common-name "remotedb" -ip "127.0.0.1" --passphrase ""
certstrap sign "remotedb" --CA "cometbft.com" --passphrase ""
mv out/remotedb.crt remotedb/test.crt
mv out/remotedb.key remotedb/test.key
rm -rf out
.PHONY: gen_certs

clean_certs:
rm -f db/remotedb/test.crt
rm -f db/remotedb/test.key
.PHONY: clean_certs

%.pb.go: %.proto
## If you get the following error,
## "error while loading shared libraries: libprotobuf.so.14: cannot open shared object file: No such file or directory"
## See https://stackoverflow.com/a/25518702
## Note the $< here is substituted for the %.proto
## Note the $@ here is substituted for the %.pb.go
protoc $(INCLUDE) $< --gogo_out=Mgoogle/protobuf/timestamp.proto=github.com/golang/protobuf/ptypes/timestamp,plugins=grpc:../../..

protoc_remotedb: remotedb/proto/defs.pb.go

vulncheck:
@go run golang.org/x/vuln/cmd/govulncheck@latest ./...
.PHONY: vulncheck
84 changes: 0 additions & 84 deletions remotedb/batch.go

This file was deleted.

37 changes: 0 additions & 37 deletions remotedb/doc.go

This file was deleted.

22 changes: 0 additions & 22 deletions remotedb/grpcdb/client.go

This file was deleted.

33 changes: 0 additions & 33 deletions remotedb/grpcdb/doc.go

This file was deleted.

52 changes: 0 additions & 52 deletions remotedb/grpcdb/example_test.go

This file was deleted.

Loading

0 comments on commit b15320b

Please sign in to comment.