vspd: Improve comment for update func.
A good comment explains what a function does, not when it is called.
This commit is contained in:
parent
f8bd606468
commit
4012b098fe
@ -14,8 +14,9 @@ import (
|
|||||||
"github.com/jrick/wsrpc/v2"
|
"github.com/jrick/wsrpc/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// update is called once when vspd starts up, and once each time a
|
// update uses the latest available information from dcrd to update all of the
|
||||||
// blockconnected notification is received from dcrd.
|
// data in the vspd database. When appropriate it will also broadcast pending
|
||||||
|
// fee transactions and add tickets to voting wallets.
|
||||||
func (v *Vspd) update(ctx context.Context) {
|
func (v *Vspd) update(ctx context.Context) {
|
||||||
const funcName = "update"
|
const funcName = "update"
|
||||||
|
|
||||||
@ -44,7 +45,8 @@ func (v *Vspd) update(ctx context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 4/4: Set ticket outcome in database if any tickets are voted/revoked.
|
// Step 4/4: Set ticket outcome in database if any tickets are
|
||||||
|
// voted/revoked.
|
||||||
v.setOutcomes(ctx, dcrdClient)
|
v.setOutcomes(ctx, dcrdClient)
|
||||||
if ctx.Err() != nil {
|
if ctx.Err() != nil {
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user