Skip to content

Conversation

@doron-sincere
Copy link
Member

Changes

  • Add functional options pattern to NewBatcher:
    • WithHTTPClient: custom HTTP client
    • WithRetries: configurable retry count
    • WithEZKey: override EZ key after construction
  • Update golog to v1.0.0
  • Remove redundant root go.mod
  • Replace deprecated ioutil with io

Verification

  • Build passes
  • Tests pass with race detector

- Add WithHTTPClient option for custom http.Client injection
- Add WithRetries option for configurable retry count (default: 2)
- Convert send() to receiver method to access Batcher config
- Replace ioutil.ReadAll with io.ReadAll
- Replace interface{} with any
- Fix defer inside loop anti-pattern
- Fix PostEZCountTime docstring
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