Skip to content

Commit 2b80a2a

Browse files
authored
add support for zap v14 (#1408)
bump all the zap versions
1 parent 0c90a2f commit 2b80a2a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

go.mod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ require (
88
github.com/blevesearch/go-porterstemmer v1.0.3
99
github.com/blevesearch/segment v0.9.0
1010
github.com/blevesearch/snowballstem v0.9.0
11-
github.com/blevesearch/zap/v11 v11.0.8
12-
github.com/blevesearch/zap/v12 v12.0.8
13-
github.com/blevesearch/zap/v13 v13.0.0
11+
github.com/blevesearch/zap/v11 v11.0.9
12+
github.com/blevesearch/zap/v12 v12.0.9
13+
github.com/blevesearch/zap/v13 v13.0.1
14+
github.com/blevesearch/zap/v14 v14.0.0
1415
github.com/couchbase/ghistogram v0.1.0 // indirect
1516
github.com/couchbase/moss v0.1.0
1617
github.com/couchbase/vellum v1.0.1

index/scorch/segment_plugin.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ import (
2222
zapv11 "github.com/blevesearch/zap/v11"
2323
zapv12 "github.com/blevesearch/zap/v12"
2424
zapv13 "github.com/blevesearch/zap/v13"
25+
zapv14 "github.com/blevesearch/zap/v14"
2526
)
2627

2728
var supportedSegmentPlugins map[string]map[uint32]segment.Plugin
2829
var defaultSegmentPlugin segment.Plugin
2930

3031
func init() {
3132
ResetPlugins()
33+
RegisterPlugin(zapv14.Plugin(), false)
3234
RegisterPlugin(zapv13.Plugin(), false)
3335
RegisterPlugin(zapv12.Plugin(), false)
3436
RegisterPlugin(zapv11.Plugin(), true)

0 commit comments

Comments
 (0)