Skip to content

Delegate Segment.child_spec/1 to adapter#18

Merged
stueccles merged 1 commit into
stueccles:masterfrom
mmartinson:delegate-child-spec-from-top-level
Sep 18, 2019
Merged

Delegate Segment.child_spec/1 to adapter#18
stueccles merged 1 commit into
stueccles:masterfrom
mmartinson:delegate-child-spec-from-top-level

Conversation

@mmartinson

Copy link
Copy Markdown
Contributor

In my app I want to wrap Segment with a custom UserAnalytics module, which I pass to my application supervisor the same way as the Phoenix example in the docs. This supports the following in my module, rather than delegating to the adapter layer directly.

  defdelegate start_link(api_key), to: Segment
  defdelegate child_spec(opts), to: Segment

@stueccles

Copy link
Copy Markdown
Owner

👍 thanks for this.

@stueccles stueccles merged commit e65707a into stueccles:master Sep 18, 2019
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