Skip to content

Commit fd87513

Browse files
committed
Update function_optimizer.py
1 parent 2d99781 commit fd87513

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ def can_be_optimized(self) -> Result[tuple[bool, CodeOptimizationContext, dict[P
169169
helper_code = f.read()
170170
original_helper_code[helper_function_path] = helper_code
171171

172-
if has_any_async_functions(code_context.read_writable_code):
173-
return Failure("Codeflash does not support async functions in the code to optimize.")
174172
# Random here means that we still attempt optimization with a fractional chance to see if
175173
# last time we could not find an optimization, maybe this time we do.
176174
# Random is before as a performance optimization, swapping the two 'and' statements has the same effect

0 commit comments

Comments
 (0)