Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
spacez320 committed Mar 15, 2024
1 parent b6a416c commit 1a5e0c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ func main() {
doneQueriesChan chan bool // Channel for tracking query completion.
pauseQueryChans map[string]chan bool // Channels for pausing queries.

resultsReadyChan = make(chan bool) // Channel for signaling results readiness.
displayConfig = lib.NewDisplayConfig() // Configuration for display modes.
resultsReadyChan = make(chan bool) // Channel for signaling results readiness.
)

// Define arguments.
Expand Down Expand Up @@ -173,7 +174,6 @@ func main() {
ctx = context.WithValue(ctx, "queries", queries.ToStrings())

// Set-up display configuration.
displayConfig := *lib.NewDisplayConfig()
displayConfig.ShowHelp = showHelp
displayConfig.ShowLogs = showLogs

Expand All @@ -184,7 +184,7 @@ func main() {
lib.DisplayMode(displayMode),
ctx.Value("queries").([]string)[0], // Always start with the first query.
history,
&displayConfig,
displayConfig,
&lib.Config{
LogLevel: logLevel,
PrometheusExporterAddr: promExporterAddr,
Expand Down
1 change: 1 addition & 0 deletions pkg/storage/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

type Values []interface{}

// Retrieve an indexed token.
func (v Values) Get(index int) (result interface{}) {
// Return an empty value if we didn't find an indexed value. This can happen if empty results are
// stored.
Expand Down

0 comments on commit 1a5e0c8

Please sign in to comment.