Skip to content

Modernize and remove factory#8

Merged
jordanebelanger merged 13 commits intobrainfinance:masterfrom
sidepelican:master
Apr 24, 2024
Merged

Modernize and remove factory#8
jordanebelanger merged 13 commits intobrainfinance:masterfrom
sidepelican:master

Conversation

@sidepelican
Copy link
Copy Markdown
Contributor

Modernize the implementation overall.

Changes

  • Make the setup of EventLoopGroup unnecessary and switch the worker queue to NIOThreadPool.
  • Use swift-system for file I/O.
    (It might appear that the file I/O has become blocking, but it is the same as NonBlockingFileIO.)
    • Because NonBlockingFileIO is a bit outdated.
    • NIOFileSystem in swift-nio also seems good, but it is not stable yet.
  • Remove StackdriverLogHandler.Factory, as there is no need for setup due to the default singleton NIOThreadPool.
    • Those who want customization can use their own NIOThreadPool.
  • Delete old test support files for Linux and additionally implement tests.

This PR including #7 and #6 .

@jordanebelanger jordanebelanger self-assigned this Apr 24, 2024
Package.swift Outdated
@@ -1,22 +1,33 @@
// swift-tools-version:5.1
// swift-tools-version:5.9
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this the lowest we can go?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry, this was just my feelings.
The actual minimum Swift version is 5.8." (by swift-nio)

@jordanebelanger
Copy link
Copy Markdown
Collaborator

jordanebelanger commented Apr 24, 2024

@sidepelican superb thank you very much 👍 Will do a new major version 4.0.0 with these new changes.

@jordanebelanger
Copy link
Copy Markdown
Collaborator

@sidepelican If you are willing, we need to update the README with updated logger initialization examples.

@sidepelican
Copy link
Copy Markdown
Contributor Author

Removed Bootstrapping section and fixed example code.

@jordanebelanger
Copy link
Copy Markdown
Collaborator

@sidepelican let me know when ready

@sidepelican
Copy link
Copy Markdown
Contributor Author

sidepelican commented Apr 24, 2024

@jordanebelanger If there are no other issues to address, I am ready.

@jordanebelanger jordanebelanger merged commit ce7461d into brainfinance:master Apr 24, 2024
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.

2 participants