graph/db: thread context through to UpdateEdgePolicy
This commit is contained in:
15 files changed
+94
-86
No files matched your search
+3
-3
@@ -565,10 +565,10 @@ func (c *ChannelGraph) MarkEdgeZombie(chanID uint64,
|
||||
// updated, otherwise it's the second node's information. The node ordering is
|
||||
// determined by the lexicographical ordering of the identity public keys of the
|
||||
// nodes on either side of the channel.
|
||||
func (c *ChannelGraph) UpdateEdgePolicy(edge *models.ChannelEdgePolicy,
|
||||
op ...batch.SchedulerOption) error {
|
||||
func (c *ChannelGraph) UpdateEdgePolicy(ctx context.Context,
|
||||
edge *models.ChannelEdgePolicy, op ...batch.SchedulerOption) error {
|
||||
|
||||
from, to, err := c.V1Store.UpdateEdgePolicy(edge, op...)
|
||||
from, to, err := c.V1Store.UpdateEdgePolicy(ctx, edge, op...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user