Skip to content

Commit

Permalink
Merge pull request #233 from bdarnell/update-etcd
Browse files Browse the repository at this point in the history
Update etcd subrepo and update WriteableGroupStorage interface.
  • Loading branch information
bdarnell committed Dec 16, 2014
2 parents d24a33a + 4869cab commit 9fb4949
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion multiraft/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
// It is implemented by *raft.MemoryStorage.
type WriteableGroupStorage interface {
raft.Storage
Append(entries []raftpb.Entry)
Append(entries []raftpb.Entry) error
SetHardState(st raftpb.HardState) error
}

Expand Down
4 changes: 2 additions & 2 deletions multiraft/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ type blockableGroupStorage struct {
s WriteableGroupStorage
}

func (b *blockableGroupStorage) Append(entries []raftpb.Entry) {
func (b *blockableGroupStorage) Append(entries []raftpb.Entry) error {
b.b.wait()
b.s.Append(entries)
return b.s.Append(entries)
}

func (b *blockableGroupStorage) SetHardState(st raftpb.HardState) error {
Expand Down

0 comments on commit 9fb4949

Please sign in to comment.