X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=src%2Fcmd%2Fnncp-toss%2Fmain.go;fp=src%2Fcmd%2Fnncp-toss%2Fmain.go;h=e2bf96844a82ea0d39714d0f0d7fd2cf9a6dbfe4;hp=6a960368143aa8bca59548a171d9972bbd755596;hb=ecfb8f586558e5d74913323b716d208a1a6b422e;hpb=9c28eac5279462c0c57b1945b68faf6da51d753d diff --git a/src/cmd/nncp-toss/main.go b/src/cmd/nncp-toss/main.go index 6a96036..e2bf968 100644 --- a/src/cmd/nncp-toss/main.go +++ b/src/cmd/nncp-toss/main.go @@ -110,15 +110,30 @@ func main() { isBad = ctx.Toss( node.Id, nncp.TRx, - nice, - *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, *noACK, + &nncp.TossOpts{ + Nice: nice, + DoSeen: *doSeen, + NoFile: *noFile, + NoFreq: *noFreq, + NoExec: *noExec, + NoTrns: *noTrns, + NoArea: *noArea, + NoACK: *noACK, + }, ) || isBad if nodeId == *ctx.SelfId { isBad = ctx.Toss( node.Id, nncp.TTx, - nice, - *dryRun, false, true, true, true, true, *noArea, *noACK, + &nncp.TossOpts{ + Nice: nice, + NoFile: true, + NoFreq: true, + NoExec: true, + NoTrns: true, + NoArea: *noArea, + NoACK: *noACK, + }, ) || isBad } } @@ -150,15 +165,31 @@ func main() { ctx.Toss( nodeId, nncp.TRx, - nice, - *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, *noACK, + &nncp.TossOpts{ + Nice: nice, + DryRun: *dryRun, + DoSeen: *doSeen, + NoFile: *noFile, + NoFreq: *noFreq, + NoExec: *noExec, + NoTrns: *noTrns, + NoArea: *noArea, + NoACK: *noACK, + }, ) if *nodeId == *ctx.SelfId { ctx.Toss( nodeId, nncp.TTx, - nice, - *dryRun, false, true, true, true, true, *noArea, *noACK, + &nncp.TossOpts{ + Nice: nice, + NoFile: true, + NoFreq: true, + NoExec: true, + NoTrns: true, + NoArea: *noArea, + NoACK: *noACK, + }, ) } }