discovery: adding DeleteEdge to gossiper_test
This commit is contained in:
parent
3907ae65c2
commit
e1ea0aafe8
@ -134,6 +134,11 @@ func (r *mockGraphSource) AddEdge(info *channeldb.ChannelEdgeInfo) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *mockGraphSource) DeleteEdge(info *channeldb.ChannelEdgeInfo) error {
|
||||||
|
delete(r.infos, info.ChannelID)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (r *mockGraphSource) UpdateEdge(edge *channeldb.ChannelEdgePolicy) error {
|
func (r *mockGraphSource) UpdateEdge(edge *channeldb.ChannelEdgePolicy) error {
|
||||||
r.edges[edge.ChannelID] = append(
|
r.edges[edge.ChannelID] = append(
|
||||||
r.edges[edge.ChannelID],
|
r.edges[edge.ChannelID],
|
||||||
|
Loading…
Reference in New Issue
Block a user