1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

GO-5418 Merge branch 'main' into go-5418-integrate-any-syncs-key-value-store-for-counters

This commit is contained in:
Sergey 2025-04-14 18:07:28 +02:00
commit 418ada5f0e
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
10 changed files with 76 additions and 67 deletions

View file

@ -164,11 +164,10 @@ func (s *space) tryLoadBundledAndInstallIfMissing(disableRemoteLoad bool) {
if errors.Is(err, context.Canceled) {
return // we are closing, skip installation,
}
log.Error("failed to load bundled objects", zap.Error(err))
log.Warn("failed to load bundled objects", zap.Error(err))
}
_, _, err = s.installer.InstallBundledObjects(s.loadMissingBundledObjectsCtx, s, missingSourceIds, true)
if err != nil {
log.Error("failed to install bundled objects", zap.Error(err))
if len(missingSourceIds) > 0 {
log.Warn("missing bundled objects", zap.Strings("ids", missingSourceIds))
}
}
@ -187,9 +186,7 @@ func (s *space) mandatoryObjectsLoad(ctx context.Context, disableRemoteLoad bool
return
}
go s.tryLoadBundledAndInstallIfMissing(disableRemoteLoad)
if s.loadMandatoryObjectsErr != nil {
return
}
err := s.migrationProfileObject(ctx)
if err != nil {
log.Error("failed to migrate profile object", zap.Error(err))