File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export class LMDBStoreFactory implements DataStoreFactory {
239239const Version = 4 ;
240240const VersionFileName = `.v${ Version } .lmdb` ;
241241const Encoding = 'msgpack' ;
242- const TotalMaxDbSize = 5 * 250 * 1024 * 1024 ; // 250MB max size
242+ const TotalMaxDbSize = 250 * 1024 * 1024 ; // 250MB max size
243243
244244function stats ( store : RootDatabase | Database ) : StoreStatsType {
245245 const stats = store . getStats ( ) as Record < string , number > ;
Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments