Skip to content

Commit

Permalink
removing debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
DanFlannel committed Jan 30, 2024
1 parent b360da7 commit 6015212
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions explorer/graphql/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func New() *cobra.Command {
"api",
"Explorer GraphQL Server",
newRunCmd(),
newDebugCmd(),
)
}

Expand Down Expand Up @@ -45,30 +44,3 @@ func newRunCmd() *cobra.Command {
},
}
}

// newRunCmd returns a new cobra command that runs the api.
func newDebugCmd() *cobra.Command {
return &cobra.Command{
Use: "debug",
Short: "Runs the GraphQL server without a PostgresClient",
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()
log.Info(ctx, "ExplorerAPI started")
conf := app.DefaultExplorerAPIConfig()

err := app.Debug(ctx, conf)
if err != nil {
log.Error(ctx, "Failed to start Explorer API", err)
<-ctx.Done()

return err
}

log.Info(ctx, "Press Ctrl+C to stop")
<-ctx.Done()
log.Info(ctx, "ExplorerApi stopped")

return nil
},
}
}

0 comments on commit 6015212

Please sign in to comment.