Skip to content

Commit

Permalink
Merge pull request #231 from cerc-io/ian/v5_dev
Browse files Browse the repository at this point in the history
Clean up
  • Loading branch information
i-norden committed Mar 2, 2023
2 parents b0bcdac + 8ec203e commit 53b6fbf
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 2,715 deletions.
7 changes: 2 additions & 5 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ import (
"sync"
"time"

"github.com/mailgun/groupcache/v2"

"github.com/cerc-io/ipld-eth-server/v4/pkg/log"
"github.com/ethereum/go-ethereum/rpc"
"github.com/mailgun/groupcache/v2"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/vulcanize/gap-filler/pkg/mux"

"github.com/cerc-io/ipld-eth-server/v4/pkg/eth"
"github.com/cerc-io/ipld-eth-server/v4/pkg/graphql"
srpc "github.com/cerc-io/ipld-eth-server/v4/pkg/rpc"
s "github.com/cerc-io/ipld-eth-server/v4/pkg/serve"
Expand All @@ -59,7 +58,6 @@ var serveCmd = &cobra.Command{
func serve() {
logWithCommand.Infof("running ipld-eth-server version: %s", v.VersionWithMeta)

var forwardPayloadChan chan eth.ConvertedPayload
wg := new(sync.WaitGroup)
logWithCommand.Debug("loading server configuration variables")
serverConfig, err := s.NewConfig()
Expand All @@ -74,8 +72,7 @@ func serve() {
}

logWithCommand.Info("starting up server servers")
forwardPayloadChan = make(chan eth.ConvertedPayload, s.PayloadChanBufferSize)
server.Serve(wg, forwardPayloadChan)
server.Serve(wg)
if err := startServers(server, serverConfig); err != nil {
logWithCommand.Fatal(err)
}
Expand Down
172 changes: 0 additions & 172 deletions cmd/subscribe.go

This file was deleted.

44 changes: 0 additions & 44 deletions pkg/client/client.go

This file was deleted.

2 changes: 0 additions & 2 deletions pkg/eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ type Backend struct {

// postgres db interfaces
Retriever *CIDRetriever
Fetcher *IPLDFetcher
IPLDRetriever *IPLDRetriever

// ethereum interfaces
Expand Down Expand Up @@ -148,7 +147,6 @@ func NewEthBackend(db *sqlx.DB, c *Config) (*Backend, error) {
return &Backend{
DB: db,
Retriever: r,
Fetcher: NewIPLDFetcher(db),
IPLDRetriever: NewIPLDRetriever(db),
EthDB: ethDB,
StateDatabase: state.NewDatabase(ethDB),
Expand Down
Loading

0 comments on commit 53b6fbf

Please sign in to comment.