mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
close spacestore on create/derive
This commit is contained in:
parent
3a48c2e314
commit
c256ade02b
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ func (s *spaceService) CreateSpace(ctx context.Context, payload SpaceCreatePaylo
|
|||
return
|
||||
}
|
||||
|
||||
return store.Id(), nil
|
||||
return store.Id(), store.Close(ctx)
|
||||
}
|
||||
|
||||
func (s *spaceService) DeriveId(ctx context.Context, payload SpaceDerivePayload) (id string, err error) {
|
||||
|
@ -139,7 +139,7 @@ func (s *spaceService) DeriveSpace(ctx context.Context, payload SpaceDerivePaylo
|
|||
return
|
||||
}
|
||||
|
||||
return store.Id(), nil
|
||||
return store.Id(), store.Close(ctx)
|
||||
}
|
||||
|
||||
func (s *spaceService) NewSpace(ctx context.Context, id string, deps Deps) (Space, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue