Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Feb 3, 2021
1 parent 9896d49 commit bb1c3f9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions internal/http/services/owncloud/ocdav/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const (
// RFC1123 time that mimics oc10. time.RFC1123 would end in "UTC", see https://github.com/golang/go/issues/13781
RFC1123 = "Mon, 02 Jan 2006 15:04:05 GMT"

_propQuotaUncalculated = "-1"
_propQuotaUnknown = "-2"
_propQuotaUnlimited = "-3"
//_propQuotaUncalculated = "-1"
_propQuotaUnknown = "-2"
//_propQuotaUnlimited = "-3"
)

// ns is the namespace that is prefixed to the path in the cs3 namespace
Expand Down
6 changes: 3 additions & 3 deletions internal/http/services/owncloud/ocs/handlers/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ type Handler struct {
}

// Init initializes this and any contained handlers
func (h *Handler) Init(c *config.Config) {
func (h *Handler) Init(c *config.Config) error {
h.UserHandler = new(user.Handler)
h.UsersHandler = new(users.Handler)
h.UsersHandler.Init(c)
h.CapabilitiesHandler = new(capabilities.Handler)
h.CapabilitiesHandler.Init(c)
h.UsersHandler = new(users.Handler)
return h.UsersHandler.Init(c)
}

// Handler routes the cloud endpoints
Expand Down
7 changes: 3 additions & 4 deletions internal/http/services/owncloud/ocs/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ type V1Handler struct {
}

func (h *V1Handler) init(c *config.Config) error {
h.ConfigHandler.Init(c)
h.CloudHandler = new(cloud.Handler)
h.AppsHandler = new(apps.Handler)
if err := h.AppsHandler.Init(c); err != nil {
return err
}
h.CloudHandler = new(cloud.Handler)
h.CloudHandler.Init(c)
h.ConfigHandler = new(configHandler.Handler)
h.ConfigHandler.Init(c)
return nil
return h.CloudHandler.Init(c)
}

// Handler handles requests
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/fs/s3ng/s3ng.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (fs *s3ngfs) Shutdown(ctx context.Context) error {
return nil
}

func (fs *s3ngfs) GetQuota(ctx context.Context) (int, int, error) {
func (fs *s3ngfs) GetQuota(ctx context.Context) (uint64, uint64, error) {
return 0, 0, nil
}

Expand Down

0 comments on commit bb1c3f9

Please sign in to comment.