kapost/circuitry

View on GitHub
lib/circuitry/locks/noop.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Circuitry
  module Locks
    class NOOP
      include Base

      protected

      def lock(_key, _ttl)
        true
      end

      def lock!(key, ttl)
        # do nothing
      end

      def unlock!(key)
        # do nothing
      end
    end
  end
end