Skip to content

Commit 3d1cd30

Browse files
committed
fix: resolve pr review comments
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent 2da0d4f commit 3d1cd30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/apps/git_integration/src/crowdgit/services/affiliation/affiliation_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,15 +502,15 @@ async def parse_affiliations(self, content: str) -> tuple[list[AffiliationInfoIt
502502

503503
semaphore = asyncio.Semaphore(self.MAX_CONCURRENT_CHUNKS)
504504

505-
async def process_chunk(chunk_index: int, chunk: str):
505+
async def process_chunk(chunk: str):
506506
async with semaphore:
507507
return await invoke_bedrock(
508508
self.get_extraction_prompt(chunk),
509509
pydantic_model=AffiliationParseOutput,
510510
)
511511

512512
chunk_results = await asyncio.gather(
513-
*[process_chunk(i, chunk) for i, chunk in enumerate(chunks, 1)]
513+
*[process_chunk(chunk) for chunk in chunks]
514514
)
515515

516516
affiliations: list[AffiliationInfoItem] = []

0 commit comments

Comments
 (0)