leveldb2: support subscribing from peers

This commit is contained in:
Chris Lu
2020-07-12 22:13:40 -07:00
parent 138f176fd3
commit 5ba894bb72
5 changed files with 125 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ func (f *Filer) AggregateFromPeers(self string, filers []string) {
filers = append(filers, self)
}
f.MetaAggregator = NewMetaAggregator(filers, f.GrpcDialOption)
f.MetaAggregator.StartLoopSubscribe(time.Now().UnixNano())
f.MetaAggregator.StartLoopSubscribe(f, self, time.Now().UnixNano())
}