-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Adding string methods for the sources. #170
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
Adding string methods for the sources. #170
Conversation
pkg/source/source.go
Outdated
@@ -132,6 +136,10 @@ type Channel struct { | |||
destLock sync.Mutex | |||
} | |||
|
|||
func (c *Channel) String() string { | |||
return fmt.Sprintf("channel source: %p", c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DirectXMan12 @droot I chose to print the pointer because I didn't know of a better field to make it identifiable and thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm..can't think of better alternative in this case.
pkg/source/source.go
Outdated
@@ -132,6 +136,10 @@ type Channel struct { | |||
destLock sync.Mutex | |||
} | |||
|
|||
func (c *Channel) String() string { | |||
return fmt.Sprintf("channel source: %p", c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm..can't think of better alternative in this case.
929b286
to
ec674d6
Compare
2b3238d
to
dcf51f8
Compare
@droot I think if this is good to merge it needs an approved label. Are we waiting on @DirectXMan12 to take a look too? |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: shawn-hurley The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adding string methods for the sources.
Add skipmap flag to skip validation for AdditionlPropperties
This will set the
String
method for the sources to fix #153