Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Mar 30, 2024
1 parent 62b7b08 commit 5eadac5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
6 changes: 0 additions & 6 deletions plugin/sampling/strategystore/static/strategy_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@ func (h *strategyStore) parseStrategies(strategies *strategies) {
newStore.defaultStrategy = h.parseServiceStrategies(strategies.DefaultStrategy)
}

// merge := true
// if newStore.defaultStrategy.OperationSampling == nil ||
// newStore.defaultStrategy.OperationSampling.PerOperationStrategies == nil {
// merge = false
// }

for _, s := range strategies.ServiceStrategies {
newStore.serviceStrategies[s.Service] = h.parseServiceStrategies(s)

Expand Down
28 changes: 13 additions & 15 deletions plugin/sampling/strategystore/static/strategy_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ import (
"github.com/jaegertracing/jaeger/proto-gen/api_v2"
)

const (
snapshotLocation = "./fixtures/"
)
const snapshotLocation = "./fixtures/"

// Snapshots can be regenerated via:
//
Expand All @@ -51,20 +49,20 @@ func strategiesJSON(probability float32) string {
strategy := fmt.Sprintf(`
{
"default_strategy": {
"type": "probabilistic",
"param": 0.5
},
"service_strategies": [
{
"service": "foo",
"type": "probabilistic",
"param": %.1f
"param": 0.5
},
{
"service": "bar",
"type": "ratelimiting",
"param": 5
}
"service_strategies": [
{
"service": "foo",
"type": "probabilistic",
"param": %.1f
},
{
"service": "bar",
"type": "ratelimiting",
"param": 5
}
]
}
`,
Expand Down

0 comments on commit 5eadac5

Please sign in to comment.