You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we build out the provider, we've started seeing opportunities to DRY up the codebase a bit. Let's use this top-level issue to track places we can reduce repetition in the codebase to keep it as consistent and maintainable as possible.
Client creation in internal/provider/resources/block.go (context)
HTTP requests in internal/client/* (lots of repetition here when creating the request, setting headers, executing the request, and checking the status code; remember to pass the close function as a result so we can defer the call to it from the caller)
As we build out the provider, we've started seeing opportunities to DRY up the codebase a bit. Let's use this top-level issue to track places we can reduce repetition in the codebase to keep it as consistent and maintainable as possible.
internal/provider/resources/block.go
(context)internal/client/*
(lots of repetition here when creating the request, setting headers, executing the request, and checking the status code; remember to pass the close function as a result so we can defer the call to it from the caller)The text was updated successfully, but these errors were encountered: