Skip to content

Implement timestamp-based network subscription optimization

690f8b8
Select commit
Loading
Failed to load commit list.
Draft

WIP Local relay model #3204

Implement timestamp-based network subscription optimization
690f8b8
Select commit
Loading
Failed to load commit list.
Xcode Cloud / damus | Experimental build workflow | Archive - iOS succeeded Oct 15, 2025 in 24m 2s

893 warnings

Report Summary
Errors 0
Test Failures 0
Analysis Issues 0
Warnings 893

Details

893 Warnings

Details

  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:49
      Capture of 'self' with non-Sendable type 'PhotoCaptureProcessor' in a '@Sendable' closure
  damus/Core/Nostr/RelayPool.swift:307
      Passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:139
      Sending 'followPackModel' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Zaps/Views/NoteZapButton.swift:243
      Sending 'damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:4523
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/Shared/Utilities/Router.swift:82
      Call to main actor-isolated initializer 'init(state:relays:)' in a synchronous nonisolated context
  damus/ContentView.swift:570
      Sending 'ds.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:922
      Sending 'state.nostrNetwork' risks causing data races; this is an error in the Swift 6 language mode
  damus/damusApp.swift:130
      Main actor-isolated property 'orientation' can not be referenced from a nonisolated context
  damus/Features/Timeline/Models/HomeModel.swift:400
      Capture of 'self' with non-Sendable type 'HomeModel' in a '@Sendable' closure
  damus/Features/Translations/Views/TranslateView.swift:76
      Sending 'self.damus_state.profiles' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:100
      Call to main actor-isolated initializer 'init(damus_state:settings:contactListInitiallyPresent:relayListInitiallyPresent:)' in a synchronous nonisolated context
  nostrdb/mdb.c:8781
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Notifications/Views/NotificationsView.swift:140
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Features/Timeline/Models/HomeModel.swift:269
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Profile/Models/ProfileModel.swift:79
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Settings/Models/UserSettingsStore.swift:98
      Static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:237
      Immutable value 'followers' was never used; consider replacing with '_' or removing it
  damus/Features/Search/Models/SearchModel.swift:59
      Capture of 'self' with non-Sendable type 'SearchModel' in a '@Sendable' closure
  nostrdb/Ndb.swift:529
      Backward matching of the unlabeled trailing closure is deprecated; label the argument with 'with' to suppress this warning
  nostrdb/src/nostrdb.c:687
      Implicit conversion loses integer precision: 'const uint64_t' (aka 'const unsigned long long') to 'int'
  damus/Core/NIPs/NIP51/InterestList.swift:36
      Variable 'tag' was never mutated; consider changing to 'let' constant
  damus/Core/Nostr/RelayConnection.swift:112
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:105
      Call to main actor-isolated initializer 'init(state:note_reference:)' in a synchronous nonisolated context
  nostrdb/Ndb.swift:675
      Mutation of captured var 'streaming' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/damusApp.swift:130
      Main actor-isolated class property 'current' can not be referenced from a nonisolated context
  damus/Features/Timeline/Models/HomeModel.swift:597
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/src/cursor.h:702
      Unused function 'consume_whitespace_or_punctuation'
  nostrdb/mdb.c:3597
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Features/Profile/Views/ProfileActionSheetView.swift:338
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Media/Camera/Models/VideoCaptureProcessor.swift:73
      Capture of 'self' with non-Sendable type 'VideoCaptureProcessor' in a '@Sendable' closure
  damus/Features/Translations/Views/TranslateView.swift:76
      Sending 'self.damus_state.settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/NostrEvent.swift:828
      No calls to throwing functions occur within 'try' expression
  damus/Features/Wallet/Views/SendPaymentView.swift:48
      Sending 'self.model' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/Keys.swift:143
      Static property 'privkey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/TestData.swift:444
      Let 'test_thread_note_1' is not concurrency-safe because non-'Sendable' type 'NdbNote' may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:2057
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  DamusNotificationService/NotificationFormatter.swift:99
      Non-Sendable 'Zap?'-typed result can not be returned from main actor-isolated global function 'get_zap(from:state:)' to nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Onboarding/Views/OnboardingSuggestionsView.swift:59
      Sending 'self.model.damus_state.nostrNetwork' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:102
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/content_parser.c:599
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Features/Profile/Views/ProfileView.swift:578
      Passing closure as a 'sending' parameter risks causing data races between main actor-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Media/Models/ImageCarousel.swift:415
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/ContentView.swift:711
      No 'async' operations occur within 'await' expression
  damus/Features/Events/Models/LoadableNostrEventView.swift:53
      Sending 'self.damus_state.nostrNetwork.reader' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventHolder.swift:99
      Capture of 'self' with non-Sendable type 'EventHolder' in a '@Sendable' closure
  damus/Core/Nostr/ProfileObserver.swift:25
      Non-Sendable 'AsyncStream' (aka 'AsyncStream>>')-typed result can not be returned from actor-isolated instance method 'streamProfile(pubkey:)' to main actor-isolated context; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:68
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:219
      Capture of 'self' with non-Sendable type 'RelayConnection' in a '@Sendable' closure
  nostrdb/NdbNote.swift:269
      Immutable value 'keypair' was never used; consider replacing with '_' or removing it
  nostrdb/Ndb.swift:145
      Sending 'ndb_instance.some' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:80
      Call to main actor-isolated initializer 'init(damus_state:dms:colorScheme:)' in a synchronous nonisolated context
  nostrdb/mdb.c:3821
      Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
  damus/Core/Storage/DamusCacheManager.swift:29
      Capture of 'completion' with non-Sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:626
      Initialization of immutable value 'finishTime' was never used; consider replacing with assignment to '_' or removing it
  damus/Shared/Media/Camera/Models/CameraService.swift:493
      Capture of 'self' with non-Sendable type 'CameraService' in an isolated closure
  damus/Features/Timeline/Models/HomeModel.swift:391
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:6823
      Implicit conversion loses integer precision: 'unsigned long' to 'unsigned int'
  damus/Shared/Media/Models/MediaPicker.swift:97
      Call to main actor-isolated instance method 'chooseMedia(_:orderId:)' in a synchronous nonisolated context
  nostrdb/mdb.c:7366
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Purple/Views/DamusPurpleVerifyNpubView.swift:49
      Sending 'self.damus_state.purple' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Extensions/KFOptionSetter+.swift:69
      Capture of 'size_changed' with non-Sendable type '(CGSize) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:4698
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Wallet/Views/WalletView.swift:134
      Sending 'self.model' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:139
      Call to main actor-isolated initializer 'init(state:ev:model:blur_imgs:)' in a synchronous nonisolated context
  damus/Shared/Utilities/Router.swift:135
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:406
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Utilities/Router.swift:123
      Call to main actor-isolated initializer 'init(account:profileUploadObserver:nav:keyboardVisible:)' in a synchronous nonisolated context
  nostrscript/NostrScript.swift:350
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:4507
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrdb/src/nostrdb.c:4488
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/TestData.swift:59
      Let 'test_zap_request' is not concurrency-safe because non-'Sendable' type 'ZapRequest' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/TestData.swift:449
      Let 'test_thread_note_6' is not concurrency-safe because non-'Sendable' type 'NdbNote' may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:2254
      Variable 'last' may be uninitialized when used here
  nostrdb/src/nostrdb.c:5041
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/Shared/Utilities/Router.swift:127
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/NostrScript/LoadScript.swift:63
      Sending value of non-Sendable type '() async -> NostrScriptLoadErr?' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:4501
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/Shared/Buttons/NeutralButtonStyle.swift:16
      Call to main actor-isolated initializer 'init(padding:cornerRadius:scaleEffect:)' in a synchronous nonisolated context
  damus/TestData.swift:51
      Let 'test_repost_1' is not concurrency-safe because non-'Sendable' type 'NostrEvent' (aka 'NdbNote') may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Notifications/Models/PushNotificationClient.swift:230
      Static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:929
      Capture of 'callback' with non-Sendable type '() -> Void' in a '@Sendable' closure
  damus/Features/Zaps/Views/NoteZapButton.swift:196
      Expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
  damus/Shared/Media/CoreSVG.swift:15
      Var 'CGSVGDocumentRetain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3579
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Utilities/Router.swift:90
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/EventDetailView.swift:28
      Capture of 'id' with non-Sendable type 'ID' in an isolated closure
  nostrdb/src/nostrdb.c:2938
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/TestData.swift:66
      Let 'test_following_model' is not concurrency-safe because non-'Sendable' type 'FollowingModel' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:72
      Call to main actor-isolated initializer 'init(state:)' in a synchronous nonisolated context
  damus/Core/Nostr/RelayConnection.swift:156
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/LoadableNostrEventView.swift:81
      Sending 'self.damus_state.nostrNetwork.reader' risks causing data races; this is an error in the Swift 6 language mode
  damus/ContentView.swift:388
      Sending 'self.damus_state.nostrNetwork.userRelayList' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:266
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Shared/Media/Models/ImageCarousel.swift:242
      Cannot access property 'all_cancellables' with a non-Sendable type '[AnyCancellable]' from nonisolated deinit; this is an error in the Swift 6 language mode
  DamusNotificationService/NotificationFormatter.swift:12
      Static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:137
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6991
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Search/Views/SearchHeaderView.swift:128
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventHolder.swift:92
      Immutable value 'id' was never used; consider replacing with '_' or removing it
  nostrdb/midl.c:44
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Utilities/Theme.swift:15
      Main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context
  damus/Features/Muting/Views/MutelistView.swift:34
      Sending 'self.damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3329
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'int'
  damus/Features/FollowPack/Models/FollowPackModel.swift:53
      Capture of 'self' with non-Sendable type 'FollowPackModel' in a '@Sendable' closure
  damus/Shared/Media/CoreSVG.swift:19
      Var 'CGSVGDocumentGetCanvasSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Onboarding/Views/OnboardingSuggestionsView.swift:119
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Utilities/Router.swift:107
      Call to main actor-isolated initializer 'init(damus_state:model:)' in a synchronous nonisolated context
  damus/Shared/Media/Camera/CameraPreview.swift:80
      'videoOrientation' was deprecated in iOS 17.0: Use -videoRotationAngle instead
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:344
      Capture of 'self' with non-Sendable type 'NostrNetworkManager.SubscriptionManager' in an isolated closure; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:520
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/EventsModel.swift:79
      Sending 'event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:224
      Passing closure as a 'sending' parameter risks causing data races between main actor-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:668
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Wallet/Views/LnurlAmountView.swift:104
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Media/Camera/Models/CameraService.swift:348
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/ContentView.swift:410
      Sending 'ds.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:603
      Capture of 'self' with non-Sendable type 'HomeModel' in a '@Sendable' closure
  damus/Core/Nostr/RelayConnection.swift:219
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Actions/Reposts/Views/RepostAction.swift:29
      Sending 'boost' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:58
      Call to main actor-isolated initializer 'init(damus_state:pubkey:)' in a synchronous nonisolated context
  nostrdb/Ndb.swift:673
      Mutation of captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:7948
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Wallet/Views/SendPaymentView.swift:52
      Sending 'self.model' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Chat/ChatEventView.swift:198
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Features/Timeline/Models/HomeModel.swift:400
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:518
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Shared/Utilities/Router.swift:115
      Call to main actor-isolated initializer 'init(appstate:search:dismiss:is_hashtag_muted:)' in a synchronous nonisolated context
  damus/Features/Settings/Views/ZapSettingsView.swift:31
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Media/Models/ImageCarousel.swift:72
      Main actor-isolated property 'currentPage' can not be mutated from a nonisolated context
  damus/Core/Nostr/RelayConnection.swift:109
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/NotificationSettingsView.swift:109
      Sending 'self.damus_state.push_notification_client' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:2343
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  nostrdb/Ndb.swift:523
      Backward matching of the unlabeled trailing closure is deprecated; label the argument with 'with' to suppress this warning
  damus/Features/Events/Models/NoteContent.swift:91
      Initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
  damus/Shared/Utilities/Router.swift:66
      Call to main actor-isolated initializer 'init(state:relay:nip11:)' in a synchronous nonisolated context
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:43
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:227
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:305
      Sending 'desiredRelays' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Posting/Models/DraftsModel.swift:261
      Sending 'damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/EventLoaderView.swift:34
      Sending 'self.damus_state.nostrNetwork.reader' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/DMs/Views/DMChatView.swift:141
      Sending 'self.damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/CoreSVG.swift:17
      Var 'CGSVGDocumentCreateFromData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:88
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:102
      Call to main actor-isolated initializer 'init(dismiss:once:damus:thread:highlighted_note_id:user_just_posted_flag:untrusted_network_expanded:showStickyHeader:untrustedSectionOffset:)' in a synchronous nonisolated context
  nostrdb/src/nostrdb.c:6969
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Core/Nostr/RelayPool.swift:186
      Sending 'relay' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Search/Models/SearchModel.swift:53
      Sending 'event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/EventsModel.swift:79
      Sending 'self.events' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Posting/Models/PostBox.swift:160
      Non-Sendable 'RelayPool.Relay?'-typed result can not be returned from main actor-isolated instance method 'get_relay' to nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/FollowPack/Models/FollowPackModel.swift:51
      Sending 'event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Search/Models/SearchHomeModel.swift:58
      Non-Sendable type 'NostrNetworkManager' cannot be sent into main actor-isolated context in call to property 'ourRelayDescriptors'; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:701
      Mutation of captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Theme.swift:17
      Main actor-isolated property 'isKeyWindow' can not be referenced from a nonisolated context
  damus/Features/Zaps/Views/CustomizeZapView.swift:138
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/TestData.swift:58
      Let 'test_zap_request_ev' is not concurrency-safe because non-'Sendable' type 'NostrEvent' (aka 'NdbNote') may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/FirstAidSettingsView.swift:77
      Sending 'self.damus_state.nostrNetwork.userRelayList' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/EventsModel.swift:77
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:411
      Non-Sendable '[RelayPool.Relay]'-typed result can not be returned from main actor-isolated instance method 'getRelays(targetRelays:)' to actor-isolated context; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Theme.swift:16
      Main actor-isolated property 'windows' can not be referenced from a nonisolated context
  damus/Shared/Extensions/OffsetExtension.swift:75
      Main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context
  damus/Shared/Utilities/Router.swift:76
      Call to main actor-isolated initializer 'init(state:)' in a synchronous nonisolated context
  damus/Shared/Media/Camera/Models/CameraService.swift:533
      Capture of 'self' with non-Sendable type 'CameraService' in an isolated closure
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:63
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:707
      Reference to captured var 'subid' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Features/Events/NoteContentView.swift:298
      Sending 'self.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusState.swift:228
      Stored property 'relayFilters' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-Sendable type 'RelayFilters'; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:679
      Capture of 'self' with non-Sendable type 'Ndb' in an isolated closure; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:125
      Sending value of non-Sendable type 'NSMutableAttributedString' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/NostrEvent.swift:604
      'decrypt_dm(_:pubkey:content:encoding:)' is deprecated: Deprecated, please use NIP04.decryptContent instead
  nostrdb/mdb.c:6608
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int'
  nostrdb/src/nostrdb.c:6676
      Implicit conversion loses integer precision: 'long' to 'int'
  nostrdb/src/protected_queue.h:200
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  nostrdb/src/nostrdb.c:693
      Implicit conversion loses integer precision: 'const uint64_t' (aka 'const unsigned long long') to 'int'
  damus/Features/Timeline/Models/HomeModel.swift:925
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:296
      Non-Sendable '[RelayPool.Relay]'-typed result can not be returned from main actor-isolated instance method 'getRelays(targetRelays:)' to actor-isolated context; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/AutoSaveIndicatorView.swift:90
      Cannot access property 'timer' with a non-Sendable type 'Timer?' from nonisolated deinit; this is an error in the Swift 6 language mode
  nostrdb/src/protected_queue.h:94
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Events/EventDetailView.swift:28
      Capture of 'scroller' with non-Sendable type 'ScrollViewProxy' in a '@Sendable' closure
  damus/Features/Profile/Views/EditMetadataView.swift:69
      Sending 'self.damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:62
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/EventsModel.swift:87
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:117
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Zaps/Views/NoteZapButton.swift:202
      Sending 'damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Status/Models/UserStatus.swift:127
      Mutation of captured var 'new_val' in concurrently-executing code
  damus/Shared/Utilities/EventCache.swift:379
      Sending 'profiles' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:156
      Immutable value 'lender' was never used; consider replacing with '_' or removing it
  damus/Features/Timeline/Models/HomeModel.swift:400
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/NoteContentView.swift:298
      Sending 'self.damus_state.profiles' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6996
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Events/NoteContentView.swift:542
      No calls to throwing functions occur within 'try' expression
  damus/Features/Posting/Models/DraftsModel.swift:261
      Capture of 'damus_state' with non-Sendable type 'DamusState' in a '@Sendable' closure
  damus/ContentView.swift:797
      Sending 'damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Purple/Models/StoreObserver.swift:12
      Static property 'standard' is not concurrency-safe because non-'Sendable' type 'StoreObserver' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:431
      Variable 'attempts' was never used; consider replacing with '_' or removing it