You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/mcp/connection.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -610,10 +610,15 @@ func paginateAll[T any](
610
610
logConn.Printf("list%s: received page of %d %s from serverID=%s", itemKind, len(first.Items), itemKind, serverID)
611
611
612
612
cursor:=first.NextCursor
613
+
seenCursors:=make(map[string]struct{})
613
614
forpageCount:=1; cursor!=""; pageCount++ {
614
615
ifpageCount>=paginateAllMaxPages {
615
616
returnnil, fmt.Errorf("list%s: backend serverID=%s returned more than %d pages; aborting to prevent unbounded memory growth", itemKind, serverID, paginateAllMaxPages)
0 commit comments