diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e0db47ee1..d736f4731 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: go-version: [1.20.x, 1.21.x, 1.22.x] - platform: [ubuntu-latest, macos-latest, windows-latest] + platform: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - name: Install Go diff --git a/index/scorch/snapshot_index.go b/index/scorch/snapshot_index.go index 360a20b87..159a717d1 100644 --- a/index/scorch/snapshot_index.go +++ b/index/scorch/snapshot_index.go @@ -569,7 +569,7 @@ var DefaultFieldTFRCacheThreshold int = 0 // disabled because it causes MB-64604 func (i *IndexSnapshot) getFieldTFRCacheThreshold() int { if i.parent.config != nil { - if _, exists := i.parent.config["fieldTFRCacheThreshold"]; exists { + if val, exists := i.parent.config["fieldTFRCacheThreshold"]; exists { val := i.parent.config["fieldTFRCacheThreshold"] if x, ok := val.(float64); ok { // JSON unmarshal-ed into a map[string]interface{} will default