Skip to content

Commit

Permalink
Cleanup: unused cctp args (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse authored Jul 28, 2024
1 parent 8e30911 commit 60d78e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
13 changes: 1 addition & 12 deletions services/cctp-relayer/cmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,11 @@ var pathFlag = &cli.StringFlag{
Required: true,
}

var scribePortFlag = &cli.UintFlag{
Name: "scribe-port",
Usage: "--scribe-port <port>",
Value: 0,
}

var scribeURL = &cli.StringFlag{
Name: "scribe-url",
Usage: "--scribe-url <url>",
}

// runCommand runs the cctp relayer.
var runCommand = &cli.Command{
Name: "run",
Description: "run the cctp relayer",
Flags: []cli.Flag{configFlag, dbFlag, pathFlag, scribePortFlag, scribeURL, &commandline.LogLevel},
Flags: []cli.Flag{configFlag, dbFlag, pathFlag, &commandline.LogLevel},
Action: func(c *cli.Context) (err error) {
commandline.SetLogLevel(c)
cfg, err := config.DecodeConfig(core.ExpandOrReturnPath(c.String(configFlag.Name)))
Expand Down
5 changes: 3 additions & 2 deletions services/cctp-relayer/db/sql/sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package sqlite
import (
"context"
"fmt"
"github.com/synapsecns/sanguine/services/cctp-relayer/db/sql/base"
"os"

"github.com/synapsecns/sanguine/services/cctp-relayer/db/sql/base"

"github.com/ipfs/go-log"
common_base "github.com/synapsecns/sanguine/core/dbcommon"
"github.com/synapsecns/sanguine/core/metrics"
Expand All @@ -19,7 +20,7 @@ type Store struct {
*base.Store
}

var logger = log.Logger("scribe-sqlite")
var logger = log.Logger("cctp-relayer-sqlite")

// NewSqliteStore creates a new sqlite data store.
func NewSqliteStore(parentCtx context.Context, dbPath string, handler metrics.Handler, skipMigrations bool) (_ *Store, err error) {
Expand Down

0 comments on commit 60d78e9

Please sign in to comment.