Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kostas-christ3 committed Sep 7, 2023
1 parent da00e54 commit e0aeda1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions common/protocol/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ export class Validator {
console.error('Error getting name:', nameError);
return;
}
this.runtime_name = nameResponse.name;
this.runtime.name = nameResponse.name;
});
// Call the getName method and assign the result
this.runtime.getVersion({}, (versionError, versionResponse) => {
if (versionError) {
console.error('Error getting version:', versionError);
return;
}
this.runtime_version = versionResponse.version;
this.runtime.version = versionResponse.version;
});
}

Expand All @@ -221,7 +221,7 @@ export class Validator {
.command("version")
.description("Print runtime and protocol version")
.action(() => {
console.log(`${this.runtime_name} version: ${this.runtime_version}`);
console.log(`${this.runtime.name} version: ${this.runtime.version}`);
console.log(`@kyvejs/protocol version: ${this.protocolVersion}`);
console.log(`Node version: ${process.version}`);
console.log();
Expand Down
2 changes: 1 addition & 1 deletion common/protocol/src/methods/main/runCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export async function runCache(this: Validator): Promise<void> {
const dataItem: DataItem = await callWithBackoffStrategy(
async () => {
// get the data item from the runtime by key
this.logger.debug(`this.runtime.getDataItem($THIS,${nextKey})`);
this.logger.debug(`this.runtime.getDataItem($this.runtime.serializedConfig,${nextKey})`);
const data = await this.runtime.getDataItem({
serializedConfig: this.runtime.serializedConfig,
key: nextKey
Expand Down

0 comments on commit e0aeda1

Please sign in to comment.