Commit f6b2f82
fix(review): address PR #25 review feedback
Address review comment from copilot-pull-request-reviewer[bot]:
- messaging_repository.go: flatten ctx-deadline/timeout guard so that
a caller-supplied timeout <= 0 is also caught. Previously, the nested
`remaining < timeout` condition was false when timeout was negative
and remaining was positive, silently passing an invalid duration to
RequestMsg. Now: always clamp to ctx deadline when shorter, then a
single `timeout <= 0` guard short-circuits with context.DeadlineExceeded
before reaching NATS.
Resolves 1 review thread.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Issue: LFXV2-1743
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>1 parent bee59f9 commit f6b2f82
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 119 | + | |
122 | 120 | | |
123 | 121 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 122 | | |
130 | 123 | | |
131 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments