Skip to content

Commit

Permalink
DEBUG ONLY
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Mar 7, 2022
1 parent 4509a64 commit 6bd58d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/gitpod-db/src/typeorm/code-sync-resource-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class CodeSyncResourceDB {
} else {
latest = await this.doGetResource(manager, userId, kind, 'latest');
}
// TODO(hw): why we use `latest?.rev !== params.latestRev` ? what's latestRev?
if (params?.latestRev && latest?.rev !== params.latestRev) {
return undefined;
}
Expand Down
2 changes: 1 addition & 1 deletion components/server/src/code-sync/code-sync-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { Config } from '../config';
import { CachingBlobServiceClientProvider } from '@gitpod/content-service/lib/sugar';

// By default: 5 kind of resources * 20 revs * 1Mb = 100Mb max in the content service for user data.
const defaultRevLimit = 20;
const defaultRevLimit = 2;
// It should keep it aligned with client_max_body_size for /code-sync location.
const defaultContentLimit = '1Mb';
export type CodeSyncConfig = Partial<{
Expand Down

0 comments on commit 6bd58d5

Please sign in to comment.