go mod; fixes

This commit is contained in:
i-norden 2021-12-30 16:10:12 -06:00
parent 7cb1f2bcd3
commit 40e2948da8
4 changed files with 1317 additions and 3 deletions

View File

@ -27,6 +27,7 @@ import (
"github.com/vulcanize/leveldb-ethdb-rpc/pkg" "github.com/vulcanize/leveldb-ethdb-rpc/pkg"
srpc "github.com/vulcanize/leveldb-ethdb-rpc/pkg/rpc" srpc "github.com/vulcanize/leveldb-ethdb-rpc/pkg/rpc"
"github.com/vulcanize/leveldb-ethdb-rpc/version"
) )
var ( var (
@ -47,7 +48,7 @@ var serveCmd = &cobra.Command{
} }
func serve() { func serve() {
logWithCommand.Infof("running ipld-eth-server version: %s", v.VersionWithMeta) logWithCommand.Infof("running ipld-eth-server version: %s", version.VersionWithMeta)
wg := new(sync.WaitGroup) wg := new(sync.WaitGroup)
logWithCommand.Debug("loading server configuration variables") logWithCommand.Debug("loading server configuration variables")

21
go.mod Normal file
View File

@ -0,0 +1,21 @@
module github.com/vulcanize/leveldb-ethdb-rpc
go 1.16
require (
github.com/btcsuite/btcd v0.22.0-beta // indirect
github.com/ethereum/go-ethereum v1.10.14
github.com/go-kit/kit v0.10.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/julienschmidt/httprouter v1.3.0 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.13.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/shirou/gopsutil v3.21.5+incompatible // indirect
github.com/sirupsen/logrus v1.7.0
github.com/spf13/cobra v1.1.1
github.com/spf13/viper v1.10.1
github.com/tklauser/go-sysconf v0.3.6 // indirect
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e // indirect
)

1294
go.sum Normal file

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,6 @@ import (
"github.com/ethereum/go-ethereum/p2p/netutil" "github.com/ethereum/go-ethereum/p2p/netutil"
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/vulcanize/ipld-eth-server/pkg/prom"
) )
var ( var (
@ -66,7 +65,6 @@ func ipcServe(srv *rpc.Server, listener net.Listener) {
continue continue
} }
log.WithField("addr", conn.RemoteAddr()).Trace("accepted ipc connection") log.WithField("addr", conn.RemoteAddr()).Trace("accepted ipc connection")
go prom.IPCMiddleware(srv, conn)
} }
} }