Skip to content
Snippets Groups Projects
Commit 32c73844 authored by Manish R Jain's avatar Manish R Jain
Browse files

Switch imports to dgraph-io

parent 032997f8
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ import (
"unicode/utf8"
"github.com/Sirupsen/logrus"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/x"
)
var glog = x.Log("lexer")
......
......@@ -21,8 +21,8 @@ import (
"fmt"
"strconv"
"github.com/manishrjain/dgraph/query"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/query"
"github.com/dgraph-io/dgraph/x"
)
func Parse(input string) (sg *query.SubGraph, rerr error) {
......
......@@ -20,7 +20,7 @@ import (
"fmt"
"testing"
"github.com/manishrjain/dgraph/query"
"github.com/dgraph-io/dgraph/query"
)
func checkAttr(g *query.SubGraph, attr string) error {
......
......@@ -27,9 +27,9 @@ import (
"sync"
"github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/posting/types"
"github.com/manishrjain/dgraph/store"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/posting/types"
"github.com/dgraph-io/dgraph/store"
"github.com/dgraph-io/dgraph/x"
linked "container/list"
)
......
......@@ -24,9 +24,9 @@ import (
"testing"
"time"
"github.com/manishrjain/dgraph/posting/types"
"github.com/manishrjain/dgraph/store"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/posting/types"
"github.com/dgraph-io/dgraph/store"
"github.com/dgraph-io/dgraph/x"
)
func checkUids(t *testing.T, l List, uids ...uint64) error {
......
......@@ -20,7 +20,7 @@ import (
"sync"
"github.com/dgryski/go-farm"
"github.com/manishrjain/dgraph/store"
"github.com/dgraph-io/dgraph/store"
)
var lmutex sync.RWMutex
......
......@@ -4,7 +4,7 @@ import (
"container/heap"
"github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/task"
"github.com/dgraph-io/dgraph/task"
)
type elem struct {
......
......@@ -8,9 +8,9 @@ import (
"github.com/Sirupsen/logrus"
"github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/store"
"github.com/manishrjain/dgraph/task"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/store"
"github.com/dgraph-io/dgraph/task"
"github.com/dgraph-io/dgraph/x"
)
func TestPush(t *testing.T) {
......
......@@ -20,10 +20,10 @@ import (
"fmt"
"github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/posting"
"github.com/manishrjain/dgraph/task"
"github.com/manishrjain/dgraph/uid"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/posting"
"github.com/dgraph-io/dgraph/task"
"github.com/dgraph-io/dgraph/uid"
"github.com/dgraph-io/dgraph/x"
)
/*
......
......@@ -24,10 +24,10 @@ import (
"github.com/Sirupsen/logrus"
"github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/posting"
"github.com/manishrjain/dgraph/store"
"github.com/manishrjain/dgraph/task"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/posting"
"github.com/dgraph-io/dgraph/store"
"github.com/dgraph-io/dgraph/task"
"github.com/dgraph-io/dgraph/x"
)
func setErr(err *error, nerr error) {
......
......@@ -17,7 +17,7 @@
package store
import (
"github.com/manishrjain/gocrud/x"
"github.com/dgraph-io/dgraph/x"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt"
)
......@@ -33,7 +33,7 @@ func (s *Store) Init(filepath string) {
var err error
s.db, err = leveldb.OpenFile(filepath, s.opt)
if err != nil {
x.LogErr(log, err).WithField("filepath", filepath).
x.Err(log, err).WithField("filepath", filepath).
Fatal("While opening store")
return
}
......
......@@ -33,7 +33,7 @@ func TestGet(t *testing.T) {
var s Store
s.Init(path)
k := Key("name", 1)
k := []byte("mykey")
if err := s.SetOne(k, []byte("neo")); err != nil {
t.Error(err)
t.Fail()
......
......@@ -23,9 +23,9 @@ import (
"time"
"github.com/dgryski/go-farm"
"github.com/manishrjain/dgraph/posting"
"github.com/manishrjain/dgraph/posting/types"
"github.com/manishrjain/dgraph/x"
"github.com/dgraph-io/dgraph/posting"
"github.com/dgraph-io/dgraph/posting/types"
"github.com/dgraph-io/dgraph/x"
)
var log = x.Log("uid")
......
......@@ -22,8 +22,8 @@ import (
"testing"
"github.com/Sirupsen/logrus"
"github.com/manishrjain/dgraph/posting"
"github.com/manishrjain/dgraph/store"
"github.com/dgraph-io/dgraph/posting"
"github.com/dgraph-io/dgraph/store"
)
func NewStore(t *testing.T) string {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment