0
0
Fork 0

BREAKING API CHANGE - use stdlib context pkg

update all references to context to use std lib pkg
This commit is contained in:
Marty Schoch 2018-02-27 11:33:12 -08:00
parent f58a205ae8
commit c74e08f039
10 changed files with 10 additions and 24 deletions

View File

@ -15,11 +15,12 @@
package bleve
import (
"context"
"github.com/blevesearch/bleve/document"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/index/store"
"github.com/blevesearch/bleve/mapping"
"golang.org/x/net/context"
)
// A Batch groups together multiple Index and Delete

View File

@ -15,12 +15,11 @@
package bleve
import (
"context"
"sort"
"sync"
"time"
"golang.org/x/net/context"
"github.com/blevesearch/bleve/document"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/index/store"

View File

@ -15,13 +15,12 @@
package bleve
import (
"context"
"fmt"
"reflect"
"testing"
"time"
"golang.org/x/net/context"
"github.com/blevesearch/bleve/document"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/index/store"

View File

@ -15,6 +15,7 @@
package bleve
import (
"context"
"encoding/json"
"fmt"
"os"
@ -22,8 +23,6 @@ import (
"sync/atomic"
"time"
"golang.org/x/net/context"
"github.com/blevesearch/bleve/document"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/index/store"

View File

@ -15,6 +15,7 @@
package bleve
import (
"context"
"fmt"
"io/ioutil"
"log"
@ -28,8 +29,6 @@ import (
"testing"
"time"
"golang.org/x/net/context"
"github.com/blevesearch/bleve/analysis/analyzer/keyword"
"github.com/blevesearch/bleve/document"
"github.com/blevesearch/bleve/index"

View File

@ -15,11 +15,10 @@
package search
import (
"context"
"time"
"github.com/blevesearch/bleve/index"
"golang.org/x/net/context"
)
type Collector interface {

View File

@ -15,13 +15,13 @@
package collector
import (
"context"
"math/rand"
"strconv"
"testing"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/search"
"golang.org/x/net/context"
)
type createCollector func() search.Collector

View File

@ -15,11 +15,11 @@
package collector
import (
"context"
"time"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/search"
"golang.org/x/net/context"
)
type collectorStore interface {

View File

@ -15,10 +15,9 @@
package collector
import (
"context"
"testing"
"golang.org/x/net/context"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/search"
)

9
vendor/manifest vendored
View File

@ -107,15 +107,6 @@
"branch": "master",
"notests": true
},
{
"importpath": "golang.org/x/net/context",
"repository": "https://go.googlesource.com/net",
"vcs": "",
"revision": "e45385e9b226f570b1f086bf287b25d3d4117776",
"branch": "master",
"path": "/context",
"notests": true
},
{
"importpath": "golang.org/x/text/transform",
"repository": "https://go.googlesource.com/text",