storj / team-metainfo

GNU Affero General Public License v3.0
0 stars 0 forks source link

Use single call to get project upload limits #124

Closed mniewrzal closed 2 years ago

mniewrzal commented 2 years ago

Currently, checking upload limits (ExceedsUploadLimits) we are separately getting storage and segment limit from cache. We should be able to replace those two calls with single GetProjectLimits which returns all project limits (bandwidth, storage, segment). Code will be cleaner and method will execute slightly faster.

Acceptance Criteria:

Qweder93 commented 2 years ago

https://review.dev.storj.io/c/storj/storj/+/8411