Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Santiago Palladino <[email protected]>
  • Loading branch information
alexghr and spalladino authored Nov 27, 2024
1 parent 2a834ba commit b5bb9fb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion yarn-project/aztec/src/cli/cmds/start_prover_agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function startProverAgent(
...extractRelevantOptions<ProverAgentConfig>(options, proverAgentConfigMappings, 'proverAgent'), // override with command line options
};

if (config.realProofs && (!config.bbBinaryPath || config.acvmBinaryPath)) {
if (config.realProofs && (!config.bbBinaryPath || !config.acvmBinaryPath)) {
process.exit(1);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ export class CachingBrokerFacade implements ServerCircuitProver {

if (!jobEnqueued) {
try {
await this.cache.setProvingJobStatus(id, { status: 'in-queue' });
const inputsUri = await this.proofStore.saveProofInput(id, type, inputs);
await this.broker.enqueueProvingJob({
id,
type,
inputsUri,
});
await this.cache.setProvingJobStatus(id, { status: 'in-queue' });
} catch (err) {
await this.cache.setProvingJobStatus(id, { status: 'not-found' });
throw err;
Expand Down
1 change: 0 additions & 1 deletion yarn-project/prover-client/src/tx-prover/tx-prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export class TxProver implements EpochProverManager {
}
this.running = false;
await this.stopAgents();
// TODO(palla/prover-node): Keep a reference to all proving orchestrators that are alive and stop them?
}

/**
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/prover-node/src/prover-cache/cache_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ProverCacheManager {
return new KVProverCache(store);
}

public async removedStaleCaches(currentEpochNumber: bigint): Promise<void> {
public async removeStaleCaches(currentEpochNumber: bigint): Promise<void> {
if (!this.cacheDir) {
return;
}
Expand Down

0 comments on commit b5bb9fb

Please sign in to comment.