Skip to content

Commit

Permalink
fix(RuleRepo): remove unnecessary delay in rule processing
Browse files Browse the repository at this point in the history
The delay of 1500ms has been removed to improve the performance of rule processing. This change enhances the responsiveness of the application without affecting functionality.

> GENERATE BY https://aicommit.app
  • Loading branch information
rosuH committed Oct 29, 2024
1 parent 311fdb2 commit 2ade118
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/src/main/java/me/rosuh/sieve/model/RuleRepo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ class RuleRepo @Inject constructor(
name: String?,
url: String,
): Either<Throwable, ConfParser> = catchIO {
delay(1500)
val response: HttpResponse = httpClient.get(url)
val channel = response.bodyAsChannel()
val confName = name.takeIf { it.isNullOrEmpty().not() } ?: File(URL(url.decodeURLPart().decodeURLQueryComponent()).path).name
Expand Down

0 comments on commit 2ade118

Please sign in to comment.