Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(occurrences): Fix typo #78816

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sentry/issues/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
self.pool = MultiprocessingPool(num_processes)
self.worker = None

def crate_parallel_worker(
def create_parallel_worker(
self,
commit: Commit,
) -> ProcessingStrategy[KafkaPayload]:
Expand All @@ -63,7 +63,7 @@ def crate_parallel_worker(
output_block_size=self.output_block_size,
)

def creat_batched_parallel_worker(self, commit: Commit) -> ProcessingStrategy[KafkaPayload]:
def create_batched_parallel_worker(self, commit: Commit) -> ProcessingStrategy[KafkaPayload]:
assert self.worker is not None
batch_processor = RunTask(
function=functools.partial(process_batch, self.worker),
Expand All @@ -81,9 +81,9 @@ def create_with_partitions(
partitions: Mapping[Partition, int],
) -> ProcessingStrategy[KafkaPayload]:
if self.batched:
return self.creat_batched_parallel_worker(commit)
return self.create_batched_parallel_worker(commit)
else:
return self.crate_parallel_worker(commit)
return self.create_parallel_worker(commit)

def shutdown(self) -> None:
if self.pool:
Expand Down
Loading