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

Skip to content

Conversation

@sdt99
Copy link
Contributor

@sdt99 sdt99 commented Feb 28, 2023

Clarify in function comments that a true return value from NoteRequest when sending a cmd indicates that the cmd was sent without error, but does not guarantee that the Notecard received and processed the cmd.
The application should make other provisions to determine that the cmd was processed if this is critical to system behavior.

@sdt99
Copy link
Contributor Author

sdt99 commented Feb 28, 2023

One thought that occurs to me is whether NoteRequest() should check for an error response if sending a cmd:

{"cmd":"hub.get"}
{"cmd":"hub.g
{"err":"cannot interpret JSON: premature end of input near '\"hub.g ' {io}"}

This would add value in a situation where a critical cmd (such as a card.attn with a payload) is sent - but it's probably low priority since when the host sends a critical cmd it should verify it was processed and retry if needed.

Clarify in function comments that a `true` return value from
NoteRequest when sending a `cmd` indicates that the `cmd`
was sent without error, but does not guarantee that the Notecard
received and processed the `cmd`.
The application should make other provisions to determine that
the `cmd` was processed if this is critical to system behavior.
@sdt99 sdt99 force-pushed the sean/NoteRequest_cmd branch from 370bf00 to 90788a1 Compare February 28, 2023 14:56
@zfields zfields merged commit 644339d into master Mar 30, 2023
@zfields zfields deleted the sean/NoteRequest_cmd branch March 30, 2023 15:29
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