Skip to content

Commit

Permalink
Fix compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Dec 20, 2024
1 parent 37b2472 commit 2cf5473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/marten/cli/manage/command/serve.cr
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Marten
def run
loop do
scan_server_files
sleep 0.2
sleep(Time::Span.new(nanoseconds: 200_000_000))
end
end

Expand Down Expand Up @@ -98,7 +98,7 @@ module Marten
end

private def open_server
sleep 0.5
sleep(Time::Span.new(nanoseconds: 500_000_000))

Process.run(
generate_open_command("http://#{host || Marten.settings.host}:#{port || Marten.settings.port}"),
Expand Down

0 comments on commit 2cf5473

Please sign in to comment.