Skip to content

Commit

Permalink
fixup! refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorerlingsson committed Jan 10, 2025
1 parent ff5f91a commit f400b71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lavinmq/amqp/queue/queue.cr
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ module LavinMQ::AMQP

private def make_data_dir : String
data_dir = if durable?
File.join(@vhost.data_dir, Digest::SHA1.hexdigest @name)
else
File.join(@vhost.data_dir, "transient", Digest::SHA1.hexdigest @name)
end
File.join(@vhost.data_dir, Digest::SHA1.hexdigest @name)
else
File.join(@vhost.data_dir, "transient", Digest::SHA1.hexdigest @name)
end
if Dir.exists? data_dir
# delete left over files from transient queues
unless durable?
Expand Down

0 comments on commit f400b71

Please sign in to comment.