Skip to content

Commit

Permalink
read_only is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorerlingsson committed Jan 27, 2025
1 parent 18055c7 commit d3d69ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lavinmq/mfile.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3d69ab

Please sign in to comment.