Skip to content

[receiver/libhoneyreceiver] remove unused EnvironmentInfo,AuthInfo,TeamInfo #40802

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JaredTan95
Copy link
Member

@JaredTan95 JaredTan95 commented Jun 18, 2025

Description

remove unused EnvironmentInfo,AuthInfo,TeamInfo

Link to tracking issue

Fixes #40669

Testing

Documentation

@atoulme
Copy link
Contributor

atoulme commented Jun 18, 2025

Please check the CI.

Signed-off-by: Jared Tan <jian.tan@daocloud.io>
@JaredTan95 JaredTan95 force-pushed the libhoneyreceiver_unexport branch from f9af3bd to 24aa9b3 Compare June 19, 2025 00:41
@JaredTan95 JaredTan95 changed the title [receiver/libhoneyreceiver] Unexport EnvironmentInfo,AuthInfo,TeamInfo [receiver/libhoneyreceiver] remove unused EnvironmentInfo,AuthInfo,TeamInfo Jun 19, 2025
@@ -166,7 +139,7 @@ func (r *libhoneyReceiver) handleAuth(resp http.ResponseWriter, req *http.Reques
authURL := fmt.Sprintf("%s/1/auth", r.cfg.AuthAPI)
authReq, err := http.NewRequest(http.MethodGet, authURL, nil)
if err != nil {
errJSON, _ := json.Marshal(`{"error": "failed to create AuthInfo request"}`)
errJSON, _ := json.Marshal(`{"error": "failed to create authInfo request"}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: If this error is being returned to the client, should the word authInfo even be used? Makes it look like it's referring to something specific but it's just an auth endpoint request.
I know it's not the point of the PR so I don't consider it a blocker.

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.

[receiver/libhoneyreceiver] these structs are not part of config and cannot be exported: EnvironmentInfo,AuthInfo,TeamInfo
3 participants