Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dsarmany committed Nov 21, 2024
1 parent 3c539c7 commit 44844ee
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/multio/api/c/multio_capi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,10 @@ int multio_delete_handle(multio_handle_t* mio) {

multio::message::Metadata md;
md.set("flushKind", "end-of-simulation");
mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush);
// TODO add sleep

mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush);

// TODO add sleep
delete mio;
});
#else
Expand Down Expand Up @@ -505,13 +505,13 @@ int multio_close_connections(multio_handle_t* mio) {
return wrapApiFunction(
[mio]() {
ASSERT(mio);
multio::message::Metadata md;

multio::message::Metadata md;
md.set("flushKind", "end-of-simulation");
mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush);
mio->closeConnections();

mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush);

mio->closeConnections();
},
mio);
#else
Expand Down Expand Up @@ -661,7 +661,7 @@ int multio_write_field_buffer(multio_handle_t* mio, multio_metadata_t* md, multi

md->md.acquire(); // Make sure metadata is not stored in a stateful container from last write
md->md.modify().set("format", "raw");

if (byte_size == 4) {
md->md.modify().set("precision", "single");
}
Expand Down

0 comments on commit 44844ee

Please sign in to comment.