Skip to content

Commit

Permalink
Revert "debug"
Browse files Browse the repository at this point in the history
This reverts commit 3888b1c.
  • Loading branch information
glpatcern committed Feb 6, 2024
1 parent 3888b1c commit 0b0bbaa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/grpc/services/gateway/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,6 @@ func (s *svc) statSharesFolder(ctx context.Context) (*provider.StatResponse, err
}

func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.StatResponse, error) {
log := appctx.GetLogger(ctx)
providers, err := s.findProviders(ctx, req.Ref)
if err != nil {
return &provider.StatResponse{
Expand All @@ -1413,7 +1412,6 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St
Status: status.NewInternal(ctx, err, "error connecting to storage provider="+providers[0].Address),
}, nil
}
log.Debug().Interface("ref", req.Ref).Msg("calling Stat")
rsp, err := c.Stat(ctx, req)
if err != nil || rsp.Status.Code != rpc.Code_CODE_OK {
return rsp, err
Expand All @@ -1423,7 +1421,6 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St

// otherwise, this is a Stat for "/", which corresponds to a 0-Depth PROPFIND from web to just get the fileid:
// we respond with an hardcoded value, no need to poke all storage providers as we did before
log.Debug().Interface("ref", req.Ref).Msg("sending back fake file-id")
info := &provider.ResourceInfo{
Id: &provider.ResourceId{
StorageId: "/",
Expand Down

0 comments on commit 0b0bbaa

Please sign in to comment.