mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-12 14:42:38 +02:00
graph/db: add ChanUpdatesInHorizon benchmark
This commit is contained in:
@@ -736,6 +736,15 @@ func BenchmarkGraphReadMethods(b *testing.B) {
|
|||||||
require.NoError(b, err)
|
require.NoError(b, err)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "ChanUpdatesInHorizon",
|
||||||
|
fn: func(b testing.TB, store V1Store) {
|
||||||
|
_, err := store.ChanUpdatesInHorizon(
|
||||||
|
time.Unix(0, 0), time.Now(),
|
||||||
|
)
|
||||||
|
require.NoError(b, err)
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
|
Reference in New Issue
Block a user