On Monday, May 13, 2019 at 9:17:39 AM UTC-7, Alexander Popov wrote:
>
> Thank you.
>
> We added:
>
> servers: { read_only: {} }
>
> , as written in the documentation, and we're getting:
>
> ```
> > DB.with_server(:foo) { Artist.all }
> NoMethodError: undefined method `[]' for nil:NilClass
> from
> /home/alex/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sequel-5.19.0/lib/sequel/connection_pool/sharded_threaded.rb:313:in
>
> `block in owned_connection'
>
> Is it normal?
>
Thank you for the report. I can reproduce this. This appears to be a bug
in the server_block extension, it should be checking the servers_hash and
it isn't. I will fix it shortly.
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/e500a78a-daa4-4cb1-8d64-e4bba739bde8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.