summaryrefslogtreecommitdiff
path: root/src/tape.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/tape.zig')
-rw-r--r--src/tape.zig7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tape.zig b/src/tape.zig
index 29b1197d..56789f44 100644
--- a/src/tape.zig
+++ b/src/tape.zig
@@ -283,12 +283,7 @@ pub const Tape = struct {
// A tape in memory (a replica's, an authority's stream) is taken
// by whoever holds it.
if (t.fd < 0) return;
- var at: usize = 0;
- while (at < t.buf.items.len) {
- const n = libc.write(t.fd, t.buf.items[at..].ptr, t.buf.items.len - at);
- if (n <= 0) break;
- at += @intCast(n);
- }
+ _ = host_io.writeFd(t.fd, t.buf.items);
t.buf.clearRetainingCapacity();
}