Skip to content

Conversation

@aozd4v
Copy link
Contributor

@aozd4v aozd4v commented Jan 13, 2018

I had a use-case which required that I had access to a list of streams being stored by the server.

Without exposing the steams property I'd have to independently store the steams myself (when I create them) which seemed a bit wasteful considering the slice already exists within the server struct.

I thought I'd pull request in-case anyone else wanted this, if this isn't something you'd like within the repository feel free to close my request.

I also don't mind creating a new method 'Servers()' which returns the slice in-case you want to keep the internal property private.

Copy link
Contributor

@adriacidre adriacidre left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you @gczn :)

@adriacidre adriacidre merged commit 355367c into r3labs:master Jan 15, 2018
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