-
Refactor error handling and variable declarations in browser and logging modules
released this
2025-08-17 12:13:45 +00:00 - Simplified variable initialization in
browser.gofor readability. - Updated error handling in
request_logger.gowith better resource cleanup using deferred anonymous functions.
Refactor API handlers to use
GetContextWithCancelfor streamlined context creation and response handling-
Replaced redundant
context.WithCancelandcontext.WithValuelogic with the newGetContextWithCancelutility in all handlers. -
Centralized API response storage in the given context during cancellation.
-
Updated associated cancellation calls for consistency and improved resource management.
-
Replaced
apiResponseDatawithAddAPIResponseDatafor centralized response recording. -
Simplified cancellation logic by switching to a boolean-based
cliCancelmethod. -
Removed unused
apiResponseDataslices across handlers to reduce memory usage. -
Updated
handlers.goto support unified response data storage per request context.
Downloads
- Simplified variable initialization in