Skip to content

Commit

Permalink
send should insert (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtps authored Nov 11, 2022
1 parent 9d3a38d commit 1e1ea8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal open class RecordStoreFlowRetry<T>(
.asFlow()

override suspend fun send(item: T, e: Throwable) =
store.update(item, e)
store.insert(item, e)

override suspend fun onSuccess(item: RetryRecord<T>) =
store.remove(item.data)
Expand Down

0 comments on commit 1e1ea8e

Please sign in to comment.