fix(server/m7-scan-progress): forward-fix CI — ScanTrigger interface

B-T2 changed Scanner.Scan to take a progressCb parameter, but the
ScanTrigger interface in internal/server/server.go was missed. The
interface gains the same progressCb arg; the HTTP handler at
handleAdminScan passes nil (fire-and-forget triggers don't observe
partial tallies). The stubScanner in server_test.go gets the new
arg too.
This commit is contained in:
2026-05-06 21:26:36 -04:00
parent 3b2d1009cd
commit 6e985cf532
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -247,6 +247,6 @@ func TestRouter_AdminSubtreeNotShadowed(t *testing.T) {
// route-presence assertions in this file.
type stubScanner struct{}
func (stubScanner) Scan(_ context.Context) (library.Stats, error) {
func (stubScanner) Scan(_ context.Context, _ func(library.Stats)) (library.Stats, error) {
panic("stubScanner.Scan called from server_test")
}