|
@@ -2,7 +2,6 @@ package etcdserver
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
"errors"
|
|
"errors"
|
|
|
- "sync"
|
|
|
|
|
"time"
|
|
"time"
|
|
|
|
|
|
|
|
"code.google.com/p/go.net/context"
|
|
"code.google.com/p/go.net/context"
|
|
@@ -27,14 +26,13 @@ type Response struct {
|
|
|
// The last seen index raft was at when this request was built.
|
|
// The last seen index raft was at when this request was built.
|
|
|
Commit int64
|
|
Commit int64
|
|
|
|
|
|
|
|
- *store.Event
|
|
|
|
|
- *store.Watcher
|
|
|
|
|
|
|
+ Event *store.Event
|
|
|
|
|
+ Watcher *store.Watcher
|
|
|
|
|
|
|
|
err error
|
|
err error
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type Server struct {
|
|
type Server struct {
|
|
|
- once sync.Once
|
|
|
|
|
w *wait.List
|
|
w *wait.List
|
|
|
done chan struct{}
|
|
done chan struct{}
|
|
|
|
|
|