Skip to content
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

🌱 separate the clientid and sourceid for mqtt source client #305

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

skeeey
Copy link
Member

@skeeey skeeey commented Dec 20, 2023

Summary

Related issue(s)

Fixes #

@skeeey
Copy link
Member Author

skeeey commented Dec 20, 2023

/assign @qiujian16

@skeeey
Copy link
Member Author

skeeey commented Dec 20, 2023

/cc @morvencao

Copy link
Member

@morvencao morvencao left a comment

Choose a reason for hiding this comment

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

/lgtm

}

func NewSourceOptions(mqttOptions *MQTTOptions, sourceID string) *options.CloudEventsSourceOptions {
func NewSourceOptions(mqttOptions *MQTTOptions, clientID, sourceID string) *options.CloudEventsSourceOptions {
return &options.CloudEventsSourceOptions{
CloudEventsOptions: &mqttSourceOptions{
MQTTOptions: *mqttOptions,
errorChan: make(chan error),
sourceID: sourceID,
Copy link
Member

Choose a reason for hiding this comment

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

why do we still need source id here, or the one in line 32?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is used to build the CloudEventsSourceOptions, the line 29 is for the mqttSourceOptions, we use it to build mqtt client (topic), and the line 32 is for the CloudEventsSourceOptions

Copy link
Member Author

Choose a reason for hiding this comment

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

reorg the code, make this more clear

Signed-off-by: Wei Liu <liuweixa@redhat.com>
@qiujian16
Copy link
Member

/approve

Copy link
Contributor

openshift-ci bot commented Dec 21, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, skeeey

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@morvencao morvencao left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 21, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit 66fe32e into open-cluster-management-io:main Dec 21, 2023
15 checks passed
@skeeey skeeey deleted the sci branch January 17, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants