Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zfields
Copy link
Contributor

@zfields zfields commented Aug 22, 2025

No description provided.

@zfields zfields requested review from Bucknalla and Copilot August 22, 2025 00:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new function NoteSetRequestTimeout that allows dynamic configuration of request timeout values, replacing the previously hardcoded 30-second timeout. The function enables developers to set custom timeouts for specific transactions and restore the default timeout when needed.

Key changes:

  • Added NoteSetRequestTimeout function with ability to set custom timeouts or restore defaults
  • Modified timeout mechanism to use an override variable instead of hardcoded constant
  • Comprehensive test coverage for various timeout scenarios including edge cases

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/src/NoteSetRequestTimeout_test.cpp Comprehensive test suite covering default, custom, and edge case timeout scenarios
test/CMakeLists.txt Added test registration for the new timeout function tests
note.h Added public function declaration for NoteSetRequestTimeout
n_request.c Implemented NoteSetRequestTimeout function and added override variable
n_lib.h Modified timeout macro to use override variable with fallback to default

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@Bucknalla Bucknalla left a comment

Choose a reason for hiding this comment

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

LGTM

@zfields zfields merged commit 46263e0 into master Aug 22, 2025
12 of 13 checks passed
@zfields zfields deleted the zak-timeout branch August 22, 2025 14:39
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