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 ( ...@@ -21,7 +21,7 @@ import (
"unicode/utf8" "unicode/utf8"
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
) )
var glog = x.Log("lexer") var glog = x.Log("lexer")
......
...@@ -21,8 +21,8 @@ import ( ...@@ -21,8 +21,8 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"github.com/manishrjain/dgraph/query" "github.com/dgraph-io/dgraph/query"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
) )
func Parse(input string) (sg *query.SubGraph, rerr error) { func Parse(input string) (sg *query.SubGraph, rerr error) {
......
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/manishrjain/dgraph/query" "github.com/dgraph-io/dgraph/query"
) )
func checkAttr(g *query.SubGraph, attr string) error { func checkAttr(g *query.SubGraph, attr string) error {
......
...@@ -27,9 +27,9 @@ import ( ...@@ -27,9 +27,9 @@ import (
"sync" "sync"
"github.com/google/flatbuffers/go" "github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/posting/types" "github.com/dgraph-io/dgraph/posting/types"
"github.com/manishrjain/dgraph/store" "github.com/dgraph-io/dgraph/store"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
linked "container/list" linked "container/list"
) )
......
...@@ -24,9 +24,9 @@ import ( ...@@ -24,9 +24,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/manishrjain/dgraph/posting/types" "github.com/dgraph-io/dgraph/posting/types"
"github.com/manishrjain/dgraph/store" "github.com/dgraph-io/dgraph/store"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
) )
func checkUids(t *testing.T, l List, uids ...uint64) error { func checkUids(t *testing.T, l List, uids ...uint64) error {
......
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
"sync" "sync"
"github.com/dgryski/go-farm" "github.com/dgryski/go-farm"
"github.com/manishrjain/dgraph/store" "github.com/dgraph-io/dgraph/store"
) )
var lmutex sync.RWMutex var lmutex sync.RWMutex
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"container/heap" "container/heap"
"github.com/google/flatbuffers/go" "github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/task" "github.com/dgraph-io/dgraph/task"
) )
type elem struct { type elem struct {
......
...@@ -8,9 +8,9 @@ import ( ...@@ -8,9 +8,9 @@ import (
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/google/flatbuffers/go" "github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/store" "github.com/dgraph-io/dgraph/store"
"github.com/manishrjain/dgraph/task" "github.com/dgraph-io/dgraph/task"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
) )
func TestPush(t *testing.T) { func TestPush(t *testing.T) {
......
...@@ -20,10 +20,10 @@ import ( ...@@ -20,10 +20,10 @@ import (
"fmt" "fmt"
"github.com/google/flatbuffers/go" "github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/posting" "github.com/dgraph-io/dgraph/posting"
"github.com/manishrjain/dgraph/task" "github.com/dgraph-io/dgraph/task"
"github.com/manishrjain/dgraph/uid" "github.com/dgraph-io/dgraph/uid"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
) )
/* /*
......
...@@ -24,10 +24,10 @@ import ( ...@@ -24,10 +24,10 @@ import (
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/google/flatbuffers/go" "github.com/google/flatbuffers/go"
"github.com/manishrjain/dgraph/posting" "github.com/dgraph-io/dgraph/posting"
"github.com/manishrjain/dgraph/store" "github.com/dgraph-io/dgraph/store"
"github.com/manishrjain/dgraph/task" "github.com/dgraph-io/dgraph/task"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
) )
func setErr(err *error, nerr error) { func setErr(err *error, nerr error) {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
package store package store
import ( import (
"github.com/manishrjain/gocrud/x" "github.com/dgraph-io/dgraph/x"
"github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/opt"
) )
...@@ -33,7 +33,7 @@ func (s *Store) Init(filepath string) { ...@@ -33,7 +33,7 @@ func (s *Store) Init(filepath string) {
var err error var err error
s.db, err = leveldb.OpenFile(filepath, s.opt) s.db, err = leveldb.OpenFile(filepath, s.opt)
if err != nil { if err != nil {
x.LogErr(log, err).WithField("filepath", filepath). x.Err(log, err).WithField("filepath", filepath).
Fatal("While opening store") Fatal("While opening store")
return return
} }
......
...@@ -33,7 +33,7 @@ func TestGet(t *testing.T) { ...@@ -33,7 +33,7 @@ func TestGet(t *testing.T) {
var s Store var s Store
s.Init(path) s.Init(path)
k := Key("name", 1) k := []byte("mykey")
if err := s.SetOne(k, []byte("neo")); err != nil { if err := s.SetOne(k, []byte("neo")); err != nil {
t.Error(err) t.Error(err)
t.Fail() t.Fail()
......
...@@ -23,9 +23,9 @@ import ( ...@@ -23,9 +23,9 @@ import (
"time" "time"
"github.com/dgryski/go-farm" "github.com/dgryski/go-farm"
"github.com/manishrjain/dgraph/posting" "github.com/dgraph-io/dgraph/posting"
"github.com/manishrjain/dgraph/posting/types" "github.com/dgraph-io/dgraph/posting/types"
"github.com/manishrjain/dgraph/x" "github.com/dgraph-io/dgraph/x"
) )
var log = x.Log("uid") var log = x.Log("uid")
......
...@@ -22,8 +22,8 @@ import ( ...@@ -22,8 +22,8 @@ import (
"testing" "testing"
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/manishrjain/dgraph/posting" "github.com/dgraph-io/dgraph/posting"
"github.com/manishrjain/dgraph/store" "github.com/dgraph-io/dgraph/store"
) )
func NewStore(t *testing.T) string { 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