Skip to content

Commit

Permalink
use private and anonymous block arg for yielding method
Browse files Browse the repository at this point in the history
  • Loading branch information
kickster97 committed Apr 5, 2024
1 parent aa7c962 commit e31f285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lavinmq/federation/link.cr
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module LavinMQ
private abstract def start_link
private abstract def unregister_observer

protected def start_link_common
private def start_link_common(&block)
return if @state.terminated?
@upstream_connection.try &.close
@downstream_connection.try &.close
Expand Down

0 comments on commit e31f285

Please sign in to comment.