Simplify interface

This commit is contained in:
mcrakhman 2023-05-24 15:05:21 +02:00
parent 2ab43e2b69
commit c485baaadf
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

View File

@ -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
} }