From d3d69ab9d06bcf1fa923c2508c32e3fc4ebda189 Mon Sep 17 00:00:00 2001 From: Viktor Erlingsson Date: Mon, 27 Jan 2025 14:59:34 +0100 Subject: [PATCH] read_only is no longer used --- src/lavinmq/mfile.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lavinmq/mfile.cr b/src/lavinmq/mfile.cr index 9d9c87456b..2a1c2402d4 100644 --- a/src/lavinmq/mfile.cr +++ b/src/lavinmq/mfile.cr @@ -248,12 +248,12 @@ class MFile < IO end def to_slice - Bytes.new(buffer, @size, read_only: true) + Bytes.new(buffer, @size) end - def to_slice(pos, size, read_only = true) + def to_slice(pos, size) raise IO::EOFError.new if pos + size > @size - Bytes.new(buffer + pos, size, read_only: read_only) + Bytes.new(buffer + pos, size) end def advise(advice : Advice, addr = buffer, offset = 0, length = @capacity) : Nil