mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-25 19:58:31 +00:00
added aws lambda adapter + improvements to handle concurrency
This commit is contained in:
22 files changed
+488
-42
No files matched your search
@@ -468,13 +468,18 @@ export class ModuleManager {
|
||||
});
|
||||
}
|
||||
|
||||
async build() {
|
||||
async build(opts?: { fetch?: boolean }) {
|
||||
this.logger.context("build").log("version", this.version());
|
||||
this.logger.log("booted with", this._booted_with);
|
||||
|
||||
// if no config provided, try fetch from db
|
||||
if (this.version() === 0) {
|
||||
this.logger.context("no version").log("version is 0");
|
||||
if (this.version() === 0 || opts?.fetch === true) {
|
||||
if (this.version() === 0) {
|
||||
this.logger.context("no version").log("version is 0");
|
||||
} else {
|
||||
this.logger.context("force fetch").log("force fetch");
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await this.fetch();
|
||||
|
||||
|
||||
Reference in new issue
Block a user