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 bedfada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion util/request_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestGetRequestSource(t *testing.T) {

// Test empty ExplicitRequestSourceType
rs.RequestSourceType = "test"
expected = "external_test_db"
expected = "external_test_default"
actual = rs.GetRequestSource()
assert.Equal(t, expected, actual)

Expand Down

0 comments on commit bedfada

Please sign in to comment.