use settings user

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2022-03-07 11:12:57 +01:00
parent 0af1c98d38
commit 7bfeb162bc
6 changed files with 6 additions and 7 deletions
@@ -7,6 +7,7 @@ import (
olog "github.com/owncloud/ocis/ocis-pkg/log"
settingsmsg "github.com/owncloud/ocis/protogen/gen/ocis/messages/settings/v0"
"github.com/owncloud/ocis/settings/pkg/config"
"github.com/stretchr/testify/require"
)
@@ -17,6 +18,7 @@ var (
s = &Store{
Logger: logger,
l: &sync.Mutex{},
cfg: config.DefaultConfig(),
}
logger = olog.NewLogger(
+1 -1
View File
@@ -50,7 +50,7 @@ func (s *Store) ListBundles(bundleType settingsmsg.Bundle_Type, bundleIDs []stri
return bundles, nil
}
// ReadBundle tries to find a bundle by the given id within the dataPath.
// ReadBundle tries to find a bundle by the given id from the metadata service
func (s *Store) ReadBundle(bundleID string) (*settingsmsg.Bundle, error) {
if s.mdc == nil {
return defaultBundle(settingsmsg.Bundle_TYPE_ROLE, bundleID)[0], nil
-3
View File
@@ -2,7 +2,6 @@ package store
import (
"context"
"fmt"
"path"
"strings"
"time"
@@ -78,9 +77,7 @@ func (c *CachedMDC) ReadDir(ctx context.Context, id string) ([]string, error) {
return i.([]string), nil
}
fmt.Println("readdir calling metadataservice", id)
s, err := c.next.ReadDir(ctx, id)
fmt.Println("readdir calling metadataservice result", s, err)
if err != nil {
return nil, err
}