π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
a bit of consistency
Mahmoud918b8066f668
diff --git a/server/ente/user.go b/server/ente/user.goindex 961bca25af..778251b975 100644--- a/server/ente/user.go+++ b/server/ente/user.go@@ -80,8 +80,8 @@ type KeyAttributes struct {PublicKey string `json:"publicKey" binding:"required"`EncryptedSecretKey string `json:"encryptedSecretKey" binding:"required"`SecretKeyDecryptionNonce string `json:"secretKeyDecryptionNonce" binding:"required"`- MemLimit uint64 `json:"memLimit" binding:"required"`- OpsLimit uint64 `json:"opsLimit" binding:"required"`+ MemLimit int `json:"memLimit" binding:"required"`+ OpsLimit int `json:"opsLimit" binding:"required"`MasterKeyEncryptedWithRecoveryKey string `json:"masterKeyEncryptedWithRecoveryKey"`MasterKeyDecryptionNonce string `json:"masterKeyDecryptionNonce"`RecoveryKeyEncryptedWithMasterKey string `json:"recoveryKeyEncryptedWithMasterKey"`@@ -114,8 +114,8 @@ type UpdateKeysRequest struct {KEKSalt string `json:"kekSalt" binding:"required"`EncryptedKey string `json:"encryptedKey" binding:"required"`KeyDecryptionNonce string `json:"keyDecryptionNonce" binding:"required"`- MemLimit uint64 `json:"memLimit" binding:"required"`- OpsLimit uint64 `json:"opsLimit" binding:"required"`+ MemLimit int `json:"memLimit" binding:"required"`+ OpsLimit int `json:"opsLimit" binding:"required"`}func (u *UpdateKeysRequest) Validate() error {diff --git a/server/pkg/controller/email/storage_warning.go b/server/pkg/controller/email/storage_warning.goindex e4eafc92f6..d8866badd6 100644--- a/server/pkg/controller/email/storage_warning.go+++ b/server/pkg/controller/email/storage_warning.go@@ -25,7 +25,7 @@ const (storageWarningFromName = "Ente"storageWarningFromEmail = "[email protected]"- storageWarningOverageThreshold = int64(25 * (1 << 30))+ storageWarningOverageThreshold = uint64(25 * (1 << 30))storageWarningPreviousStageFreshnessWindow = 35 * 24 * time.MicroSecondsInOneHourstorageWarningOneDayInMicroseconds = 24 * time.MicroSecondsInOneHourstorageWarningBufferedCadenceExtraGrace = 2 * storageWarningOneDayInMicroseconds