Commit ca417b6
committed
[Client] Change how the adapter is set in the client initializer
Migrating to Faraday 1.0 means we check with `adapter` to see which one has been
selected. I also changed the order in which the given block is ran. There's a
case where one of the adapter libraries could be loaded and an adapter is passed
in with the block, but `__auto_detect_adapter` would overwrite this. So the
block is now ran last.1 parent a0954bb commit ca417b6
File tree
1 file changed
+2
-4
lines changed- elasticsearch-transport/lib/elasticsearch/transport
1 file changed
+2
-4
lines changedLines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 145 | + | |
| 146 | + | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
| |||
0 commit comments