-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tutorial 1 and 2 #399
base: master
Are you sure you want to change the base?
tutorial 1 and 2 #399
Conversation
also remove some build warnings.
Review status: 0 of 5 files reviewed at latest revision, 15 unresolved discussions. a discussion (no related file): First round of comments here. examples/new_task.c, line 17 at r1 (raw file):
You can remove all of this, just leave your contribution (here and throughout). examples/new_task.c, line 55 at r1 (raw file):
examples/new_task.c, line 63 at r1 (raw file):
Please format all of the source-code files with clang-format (https://clang.llvm.org/docs/ClangFormat.html). The .clang-format file in the root of the repository should set the correct coding standard. examples/new_task.c, line 74 at r1 (raw file):
Just drop both of these from the function signature (here and throughout). examples/new_task.c, line 86 at r1 (raw file):
Ideally we shouldn't use Use an if-statement like whats done with examples/new_task.c, line 88 at r1 (raw file):
The correct path for error-checking for RPC-type calls is to check for amqp_channel_open_ok_t* res = amqp_channel_open(conn, 1);
if (res == NULL) {
/* Use amqp_get_rpc_reply() to get details on what failed */
printf("failed to open channel\n");
exit(1);
... examples/new_task.c, line 88 at r1 (raw file):
Use a variable for the channel number, and pass it into to other functions that require a channel. examples/new_task.c, line 101 at r1 (raw file):
Whats commented out here? examples/new_task.c, line 102 at r1 (raw file):
Add comment indicating what this means examples/new_task.c, line 103 at r1 (raw file):
Use the old-school /* */ comments (here and throughout). examples/new_task.c, line 104 at r1 (raw file):
Add comments indicating what each of these mean (here and throughout - (this is an unfortunate failing of the library)). examples/new_task.c, line 107 at r1 (raw file):
Same deal as with examples/new_task.c, line 133 at r1 (raw file):
No need to do this, channels are implicitly closed when the connection is closed. examples/new_task.c, line 135 at r1 (raw file):
Use a non-assert() error checking Comments from Reviewable |
Hi, Thank you very much for your review! |
Review status: 0 of 5 files reviewed at latest revision, 15 unresolved discussions. examples/new_task.c, line 55 at r1 (raw file): Previously, alanxz (Alan Antonuk) wrote…
Apparently, ’amqp_tcp_socket.h’ isn't included in ’amqp.h’, so I still need to keep that include, otherwise I got build warning. Comments from Reviewable |
Hi,
Here are the tutorial 1 - and 2 example files, with now a compatible license.
kind regards,
Adrien
This change is