{"action":"opened","issue":{"url":"https://api.github.com/repos/ananthakumaran/redix_sentinel/issues/2","repository_url":"https://api.github.com/repos/ananthakumaran/redix_sentinel","labels_url":"https://api.github.com/repos/ananthakumaran/redix_sentinel/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ananthakumaran/redix_sentinel/issues/2/comments","events_url":"https://api.github.com/repos/ananthakumaran/redix_sentinel/issues/2/events","html_url":"https://github.com/ananthakumaran/redix_sentinel/issues/2","id":303223648,"number":2,"title":"Can I use this without sentinel?","user":{"login":"rlipscombe","id":323236,"avatar_url":"https://avatars2.githubusercontent.com/u/323236?v=4","gravatar_id":"","url":"https://api.github.com/users/rlipscombe","html_url":"https://github.com/rlipscombe","followers_url":"https://api.github.com/users/rlipscombe/followers","following_url":"https://api.github.com/users/rlipscombe/following{/other_user}","gists_url":"https://api.github.com/users/rlipscombe/gists{/gist_id}","starred_url":"https://api.github.com/users/rlipscombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlipscombe/subscriptions","organizations_url":"https://api.github.com/users/rlipscombe/orgs","repos_url":"https://api.github.com/users/rlipscombe/repos","events_url":"https://api.github.com/users/rlipscombe/events{/privacy}","received_events_url":"https://api.github.com/users/rlipscombe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-07T19:11:49Z","updated_at":"2018-03-07T19:11:49Z","closed_at":null,"author_association":"NONE","body":"Let's say I want to test something locally, and I only have a single redis instance, with no sentinel. Can I use this _without_ a sentinel?\r\n\r\nI tried:\r\n\r\n```\r\n{:ok, redis} = RedixSentinel.start_link([], [host: redis_host, port: 6370, database: 0])\r\n{:ok, \"PONG\"} = RedixSentinel.command(redis, [\"PING\"])\r\n```\r\n\r\n...but it failed with:\r\n\r\n```\r\n** (EXIT from #PID<0.77.0>) an exception was raised:\r\n    ** (KeyError) key :sentinels not found in: [log: [disconnection: :error, failed_connection: :error, reconnection: :info, sentinel_connection: :debug], backoff_initial: 500, backoff_max: 30000, role: \"master\", verify_role: 0]\r\n        (elixir) lib/keyword.ex:377: Keyword.fetch!/2\r\n        (redix_sentinel) lib/redix_sentinel.ex:231: RedixSentinel.find_and_connect/1\r\n        (redix_sentinel) lib/redix_sentinel.ex:153: RedixSentinel.connect/2\r\n        (connection) lib/connection.ex:622: Connection.enter_connect/5\r\n        (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3\r\n```\r\n\r\nRelated: It doesn't appear that I can mix `RedixSentinel.start_link` with `Redix.command`, which would be the other way I'd try to make the interesting code agnostic about whether I'm using a sentinel or not (because I could then use `Redix.start_link` when I knew I wasn't using a sentinel). That doesn't work either."}}
{"actor":{"display_login":"rlipscombe"}}