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

refactor(sdk): perform request instead of only creating it #87

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

tenstad
Copy link
Member

@tenstad tenstad commented Jan 8, 2025

As creation of request is always followed by doing that request.

The error from Do also includes method and url, so it seems we can skip wrapping the error.
Example Get "http://kasfjlkasjflkas.ar/user/list?groupId=tenant1&limit=100&userStatus=all&userType=all": dial tcp: lookup kasfjlkasjflkas.ar on 127.0.0.11:53: no such host

@tenstad tenstad requested review from erikgb and mariatsji January 8, 2025 20:43
Copy link
Contributor

@mariatsji mariatsji left a comment

Choose a reason for hiding this comment

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

A net loss-of-codelines and centralize a much repeated pattern - so this is nice imo

@mariatsji mariatsji merged commit 258ccbf into main Jan 9, 2025
6 checks passed
@mariatsji mariatsji deleted the response branch January 9, 2025 07:11
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.

3 participants