Skip to content

Commit

Permalink
Merge pull request #35 from absolute8511/update-pb
Browse files Browse the repository at this point in the history
Update pb and handle pkg util import
  • Loading branch information
absolute8511 authored Dec 28, 2017
2 parents e6ceb62 + 2544c6e commit be1d934
Show file tree
Hide file tree
Showing 125 changed files with 10,049 additions and 2,319 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go
go:
- 1.7.x
- 1.8.x
- 1.9.x
env:
- GOARCH=amd64 TEST_RACE=false
- GOARCH=amd64 TEST_RACE=true
Expand Down
4 changes: 3 additions & 1 deletion build-pb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ set -e
GOGOROOT="${GOPATH}/src/github.com/gogo/protobuf"
GOGOPATH="${GOGOROOT}:${GOGOROOT}/protobuf"
DIRS="./node ./raft/raftpb ./snap/snappb ./wal/walpb ./rockredis"
echo $GOROOT
echo $GOPATH
for dir in ${DIRS}; do
pushd ${dir}
protoc --proto_path=$GOPATH:$GOGOPATH:./ --gogo_out=. *.proto
protoc --proto_path=$GOPATH:$GOGOPATH:./ --gofast_out=. *.proto
popd
done
2 changes: 1 addition & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/absolute8511/ZanRedisDB/rockredis"
"github.com/absolute8511/ZanRedisDB/transport/rafthttp"
"github.com/absolute8511/redcon"
"github.com/coreos/etcd/pkg/wait"
"github.com/absolute8511/ZanRedisDB/pkg/wait"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions node/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ import (
"sync/atomic"

"github.com/absolute8511/ZanRedisDB/common"
"github.com/absolute8511/ZanRedisDB/pkg/fileutil"
"github.com/absolute8511/ZanRedisDB/raft"
"github.com/absolute8511/ZanRedisDB/raft/raftpb"
"github.com/absolute8511/ZanRedisDB/snap"
"github.com/absolute8511/ZanRedisDB/transport/rafthttp"
"github.com/absolute8511/ZanRedisDB/wal"
"github.com/absolute8511/ZanRedisDB/wal/walpb"
"github.com/coreos/etcd/pkg/fileutil"
"github.com/coreos/etcd/pkg/idutil"
"github.com/coreos/etcd/pkg/types"
"github.com/absolute8511/ZanRedisDB/pkg/idutil"
"github.com/absolute8511/ZanRedisDB/pkg/types"
"golang.org/x/net/context"
)

Expand Down Expand Up @@ -115,7 +115,7 @@ type raftNode struct {
newLeaderChan chan string
lastLeaderChangedTs int64
stopping int32
replayRunning int32
replayRunning int32
}

// newRaftNode initiates a raft instance and returns a committed log entry
Expand Down
Loading

0 comments on commit be1d934

Please sign in to comment.