Simplify interface
This commit is contained in:
parent
2ab43e2b69
commit
c485baaadf
@ -96,7 +96,6 @@ func NewSpaceId(id string, repKey uint64) string {
|
|||||||
type Space interface {
|
type Space interface {
|
||||||
Id() string
|
Id() string
|
||||||
Init(ctx context.Context) error
|
Init(ctx context.Context) error
|
||||||
StartHeadSync()
|
|
||||||
|
|
||||||
StoredIds() []string
|
StoredIds() []string
|
||||||
DebugAllHeads() []headsync.TreeHeads
|
DebugAllHeads() []headsync.TreeHeads
|
||||||
@ -232,10 +231,6 @@ func (s *space) Init(ctx context.Context) (err error) {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *space) StartHeadSync() {
|
|
||||||
s.headSync.Run()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *space) ObjectSync() objectsync.ObjectSync {
|
func (s *space) ObjectSync() objectsync.ObjectSync {
|
||||||
return s.objectSync
|
return s.objectSync
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user