only do get items
This commit is contained in:
parent
b8930d436d
commit
21c006ebd8
@ -10,6 +10,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/alcionai/clues"
|
"github.com/alcionai/clues"
|
||||||
|
"github.com/microsoftgraph/msgraph-sdk-go/models"
|
||||||
"github.com/spatialcurrent/go-lazy/pkg/lazy"
|
"github.com/spatialcurrent/go-lazy/pkg/lazy"
|
||||||
|
|
||||||
"github.com/alcionai/corso/src/internal/common/idname"
|
"github.com/alcionai/corso/src/internal/common/idname"
|
||||||
@ -384,9 +385,15 @@ func downloadContent(
|
|||||||
// logger.CtxErr(ctx, err).Debug("url cache miss: refetching from API")
|
// logger.CtxErr(ctx, err).Debug("url cache miss: refetching from API")
|
||||||
// counter.Inc(count.URLCacheMiss)
|
// counter.Inc(count.URLCacheMiss)
|
||||||
|
|
||||||
di, err := iaag.GetItem(ctx, driveID, ptr.Val(item.GetId()))
|
var di models.DriveItemable
|
||||||
if err != nil {
|
|
||||||
return nil, clues.Wrap(err, "retrieving expired item")
|
for i := 0; i < 1000000; i++ {
|
||||||
|
di, err := iaag.GetItem(ctx, driveID, ptr.Val(item.GetId()))
|
||||||
|
if err != nil {
|
||||||
|
return nil, clues.Wrap(err, "retrieving expired item")
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.Ctx(ctx).Debugf("iteration %d item id %s\n ", i, ptr.Val(di.GetId()))
|
||||||
}
|
}
|
||||||
|
|
||||||
cdi := custom.ToCustomDriveItem(di)
|
cdi := custom.ToCustomDriveItem(di)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user