Skip to content

Commit

Permalink
use default
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Jul 6, 2023
1 parent ba1066b commit c3bf88b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/request_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ const (
// explicit source types.
const (
ExplicitTypeEmpty = ""
ExplicitTypeDB = "db"
ExplicitTypeDefault = "default"
ExplicitTypeLightning = "lightning"
ExplicitTypeBR = "br"
ExplicitTypeDumpling = "dumpling"
ExplicitTypeBackground = "background"
)

// ExplicitTypeList is the list of all explicit source types.
var ExplicitTypeList = []string{ExplicitTypeDB, ExplicitTypeLightning, ExplicitTypeBR, ExplicitTypeDumpling, ExplicitTypeBackground}
var ExplicitTypeList = []string{ExplicitTypeDefault, ExplicitTypeLightning, ExplicitTypeBR, ExplicitTypeDumpling, ExplicitTypeBackground}

const (
// InternalRequest is the scope of internal queries
Expand Down Expand Up @@ -109,7 +109,7 @@ func (r *RequestSource) GetRequestSource() string {
}
explicitSourceType := r.ExplicitRequestSourceType
if len(explicitSourceType) == 0 {
explicitSourceType = ExplicitTypeDB
explicitSourceType = ExplicitTypeDefault
}
if r.RequestSourceInternal {
labels := []string{InternalRequest, r.RequestSourceType, explicitSourceType}
Expand Down

0 comments on commit c3bf88b

Please sign in to comment.