Skip to content

Commit c2ddea8

Browse files
committed
Fixes factory
1 parent ee1bb53 commit c2ddea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-driver/src/main/java/org/jnosql/diana/elasticsearch/document/ElasticsearchDocumentCollectionManagerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class ElasticsearchDocumentCollectionManagerFactory implements DocumentCo
4949
@Override
5050
public ElasticsearchDocumentCollectionManagerAsync getAsync(String database) throws UnsupportedOperationException, NullPointerException {
5151
initDatabase(database);
52-
return new ElasticsearchDocumentCollectionManagerAsync(client, database);
52+
return new DefaultElasticsearchDocumentCollectionManagerAsync(client, database);
5353
}
5454

5555

@@ -58,7 +58,7 @@ public ElasticsearchDocumentCollectionManager get(String database) throws Unsupp
5858
Objects.requireNonNull(database, "database is required");
5959

6060
initDatabase(database);
61-
return new ElasticsearchDocumentCollectionManager(client, database);
61+
return new DefaultElasticsearchDocumentCollectionManager(client, database);
6262
}
6363

6464
private byte[] getBytes(URL url) {

0 commit comments

Comments
 (0)