Skip to content

Commit 22a42cb

Browse files
committed
Take 1
1 parent 9572bd3 commit 22a42cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/datastore/LMDB.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class LMDBStoreFactory implements DataStoreFactory {
239239
const Version = 4;
240240
const VersionFileName = `.v${Version}.lmdb`;
241241
const Encoding = 'msgpack';
242-
const TotalMaxDbSize = 5 * 250 * 1024 * 1024; // 250MB max size
242+
const TotalMaxDbSize = 250 * 1024 * 1024; // 250MB max size
243243

244244
function stats(store: RootDatabase | Database): StoreStatsType {
245245
const stats = store.getStats() as Record<string, number>;

src/schema/GetSamSchemaTask.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class GetSamSchemaTask extends GetSchemaTask {
2323
const resourceSchemas = await this.getSamSchemas();
2424

2525
// Convert to SamSchemasType format
26-
const schemas = [...resourceSchemas.entries()].map(([resourceType, schema]) => ({
26+
const schemas = [...resourceSchemas.entries()].slice(0, 1).map(([resourceType, schema]) => ({
2727
name: resourceType,
2828
content: JSON.stringify(schema),
2929
createdMs: Date.now(),

src/schema/GetSchemaTask.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class GetPublicSchemaTask extends GetSchemaTask {
4343

4444
this.attempts++;
4545
this.telemetry.count(`getSchemas.${this.region}`, 1);
46-
const schemas = await this.getSchemas(this.region);
46+
const schemas = (await this.getSchemas(this.region)).slice(0, 1);
4747
const value: RegionalSchemasType = {
4848
version: RegionalSchemas.V1,
4949
region: this.region,
@@ -75,7 +75,7 @@ export class GetPrivateSchemasTask extends GetSchemaTask {
7575
return;
7676
}
7777

78-
const schemas: DescribeTypeOutput[] = await this.getSchemas();
78+
const schemas: DescribeTypeOutput[] = (await this.getSchemas()).slice(0, 1);
7979

8080
const value: PrivateSchemasType = {
8181
version: PrivateSchemas.V1,

0 commit comments

Comments
 (0)