Skip to content

Additions to enable CLI support #148

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

Merged
merged 25 commits into from
Jul 11, 2022
Merged

Additions to enable CLI support #148

merged 25 commits into from
Jul 11, 2022

Conversation

bsneed
Copy link
Contributor

@bsneed bsneed commented Jul 11, 2022

  • Added property to determine if there are unsent events.
  • Made some properties public for CLI visibility.
  • Improved file handle access and queue determinations.
  • Improved decode failure error message.
  • Fixed cellular plugin key path.

@bsneed bsneed merged commit 53bc748 into main Jul 11, 2022
@bsneed bsneed deleted the bsneed/cli_additions branch July 11, 2022 18:00
@@ -124,6 +124,7 @@ public class SegmentDestination: DestinationPlugin {
switch result {
case .success(_):
storage.remove(file: url)
self.cleanupUploads()
Copy link

@grzegorzkrukowski grzegorzkrukowski Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @bsneed - why this line has been added here when there is another call of this method that happens independently from the result value?

https://github.com/segmentio/analytics-swift/pull/148/files#diff-92679f628b3def3ba245e4435edfcea09ea06a77277e6e2497aa331efbf46028R136

Copy link
Contributor Author

@bsneed bsneed Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch @grzegorzkrukowski ! The cleanupUploads call here isn't necessary. Fortunately the subsequent call results in a no-op.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants