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

fix(pluto): Handle write operations inside FlatMap with Future #187

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ env:
jobs:
lint:
name: build
runs-on: macos-13
runs-on: macos-15

steps:
- name: Checkout Code
uses: actions/checkout@v3

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
xcode-version: '16.2'

# - name: Install lcov
# run: brew install [email protected] && brew link --overwrite --force [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ extension CDMessageDAO: MessageStore {
.first()
.map { $0.first }
.flatMap { pair in
self.updateOrCreate(
msg.id,
context: writeContext
) { cdobj, _ in
try cdobj.fromDomain(msg: msg, direction: direction, pair: pair)
Future {
self.updateOrCreate(
msg.id,
context: writeContext
) { cdobj, _ in
try cdobj.fromDomain(msg: msg, direction: direction, pair: pair)
}
}
}
.map { _ in }
Expand Down