Skip to content

Conversation

lin-snow
Copy link

@lin-snow lin-snow commented Sep 5, 2025

Issue

GetRequestID(ctx context.Context) string
function was missing a return statement. This caused a compile error:

missing return at end of function

Solution

Added a return statement so that the function correctly returns
the string value from the context.

func GetRequestID(ctx context.Context) string {
    return ctx.Value(requestIDKey).(string)
}

@lin-snow
Copy link
Author

lin-snow commented Sep 5, 2025

Fixes #78

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.

1 participant