Skip to content

Commit

Permalink
Merge pull request #12 from golemfactory/fix/docs-example-proposal-fi…
Browse files Browse the repository at this point in the history
…lter

docs: fixed example with proposal filter
  • Loading branch information
mgordel authored Feb 28, 2024
2 parents a8d72bb + 5e22b62 commit da60604
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TaskExecutor } from "@golem-sdk/task-executor";

var costData = [];

const myFilter = async (proposal) => {
const myFilter = (proposal) => {
let decision = false;
let usageVector = proposal.properties["golem.com.usage.vector"];
let counterIdx = usageVector.findIndex((ele) => ele === "golem.usage.duration_sec");
Expand Down

0 comments on commit da60604

Please sign in to comment.