MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_stream_close

Function json_stream_close

common/json_stream.c:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void json_stream_close(struct json_stream *js, struct command *writer)
113{
114 /* FIXME: We use writer == NULL for malformed: make writer a void *?
115 * I used to assert(writer); here. */
116 assert(js->writer == writer);
117
118 /* Should be well-formed at this point! */
119 json_stream_double_cr(js);
120 json_stream_flush(js);
121 js->writer = NULL;
122}
123
124/* Also called when we're oom, so it will kill reader. */
125void json_stream_flush(struct json_stream *js)

Callers 5

command_raw_completeFunction · 0.85
json_command_malformedFunction · 0.85
jsonrpc_finish_and_sendFunction · 0.85
command_completeFunction · 0.85
send_outreqFunction · 0.85

Calls 2

json_stream_double_crFunction · 0.85
json_stream_flushFunction · 0.85

Tested by

no test coverage detected