Add Sync stats, and report them in DebugAPI

This commit is contained in:
Eduard S
2020-11-11 18:15:25 +01:00
parent 7294d766cd
commit 6c0d48f4a2
11 changed files with 244 additions and 24 deletions

View File

@@ -50,7 +50,8 @@ func TestDebugAPI(t *testing.T) {
require.Nil(t, err)
addr := "localhost:12345"
debugAPI := NewDebugAPI(addr, sdb)
// We won't test the sync/stats endpoint, so we can se the Syncrhonizer to nil
debugAPI := NewDebugAPI(addr, sdb, nil)
ctx, cancel := context.WithCancel(context.Background())
go func() {