Skip to content

Commit 542062e

Browse files
committed
wrap flatMap write operation in Future
Signed-off-by: Jon Bauer <[email protected]> ci: update and remove breaking steps Signed-off-by: goncalo-frade-iohk <[email protected]> update build.yml for xcode16 Signed-off-by: Jon Bauer <[email protected]> feat(agent): the body on issue credential protocol messages can be null hyperledger-identus/identus#115 Signed-off-by: goncalo-frade-iohk <[email protected]> commits squashed
1 parent 8914e2e commit 542062e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ env:
1919
jobs:
2020
lint:
2121
name: build
22-
runs-on: macos-13
22+
runs-on: macos-15
2323

2424
steps:
2525
- name: Checkout Code
2626
uses: actions/checkout@v3
2727

2828
- uses: maxim-lobanov/setup-xcode@v1
2929
with:
30-
xcode-version: '15.0.1'
30+
xcode-version: '16.2'
3131

3232
# - name: Install lcov
3333
# run: brew install [email protected] && brew link --overwrite --force [email protected]

EdgeAgentSDK/Pluto/Sources/PersistentStorage/DAO/CDMessageDAO+MessageStore.swift

+7-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ extension CDMessageDAO: MessageStore {
4444
.first()
4545
.map { $0.first }
4646
.flatMap { pair in
47-
self.updateOrCreate(
48-
msg.id,
49-
context: writeContext
50-
) { cdobj, _ in
51-
try cdobj.fromDomain(msg: msg, direction: direction, pair: pair)
47+
Future {
48+
self.updateOrCreate(
49+
msg.id,
50+
context: writeContext
51+
) { cdobj, _ in
52+
try cdobj.fromDomain(msg: msg, direction: direction, pair: pair)
53+
}
5254
}
5355
}
5456
.map { _ in }

0 commit comments

Comments
 (0)