-
Notifications
You must be signed in to change notification settings - Fork 8
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
feature(Partner SDK): Add V2 examples for SourceConnector #80
Conversation
This pull request has been linked to 1 task:
|
@@ -36,7 +35,7 @@ func (s *server) Update(in *pb.UpdateRequest, stream pb.Connector_UpdateServer) | |||
state := MyState{} | |||
json.Unmarshal([]byte(state_json), &state) | |||
|
|||
message := fmt.Sprintf("config: %s, selection: %s, state_json: %s, mystate: %s", config, selection, state_json, state) | |||
message := fmt.Sprintf("config: %s, selection: %s, state_json: %s, mystate: %+v", config, selection, state_json, state) |
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.
Why %+v ?
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.
%+v
format specifier is used with the fmt to print the value of a struct with field names included.
We shouldn't use %s for it.
} | ||
|
||
message ConfigurationTest { | ||
string name = 1; // unique identifier for the test |
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.
NIT: Remove the comments
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.
Looks good.
282ca32
to
9646e4a
Compare
Link T-849690
Description
Added V2 examples for SourceConnector
Testing (Updating...)