Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Brown committed Jul 9, 2024
1 parent 5f6cf05 commit c4b5ce8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions lib/cached_resource/cached_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ def cached_resource(options={})
# and establishing the necessary methods.
def setup_cached_resource!(options)
@cached_resource = CachedResource::Configuration.new(options)
# puts "OK WE ARE SET UP!"
# if @cached_resource.concurrent_write
# @cached_resource.require_concurrent_ruby
# # begin
# # send :require, 'concurrent/promise'
# # rescue LoadError
# # @cached_resource.logger.error(
# # "`concurrent_write` option is enabled, but `concurrent-ruby` is not an installed dependency"
# # )
# # raise
# # end
# end
send :include, CachedResource::Caching
@cached_resource
end
Expand Down
4 changes: 0 additions & 4 deletions spec/cached_resource/caching_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ class NotTheThing < ActiveResource::Base
original_method.call(*args, &block)
end
result = Thing.find(5)
# sleep 1
# expect(Concurrent::Promise).to receive(:execute)
# Concurrent::Promise.execute

# read_from_cache("thing/5").should == nil
loops = 0
begin
Timeout.timeout(5) do
Expand Down

0 comments on commit c4b5ce8

Please sign in to comment.