Skip to content

Commit

Permalink
refactor(indexer): add BaseVecIndexer, BaseKVIndexer rename old
Browse files Browse the repository at this point in the history
Signed-off-by: Han Xiao <[email protected]>
  • Loading branch information
hanxiao committed Apr 1, 2020
1 parent 1514b4f commit ab405ea
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions jina/executors/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def get_default_reqs(cls_mro: List[type]) -> Dict:

if cls.__name__ != cls_mro[0].__name__:
from ..logging import default_logger
default_logger.warning(f'"requests.on" setting of {cls_mro[0]} fallback to general {cls} setting, '
f'because you did not specify {cls_mro[0]}')
default_logger.debug(f'"requests.on" setting of {cls_mro[0]} fallback to general {cls} setting, '
f'because you did not specify {cls_mro[0]}')
return copy.deepcopy(_defaults[cls.__name__])
except FileNotFoundError:
pass
Expand Down
1 change: 0 additions & 1 deletion jina/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,6 @@ def to_swarm_yaml(self, path: TextIO):

for k, v in self._pod_nodes.items():
swarm_yml['services'][k] = {
'image': self.image_name,
'command': v.to_cli_command(),
'deploy': {'replicas': 1}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/yaml/npvec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ components:
metas:
name: my_vec_indexer # a customized name
workspace: $TEST_WORKDIR
- !ProtobufIndexer
- !BasePbIndexer
with:
index_filename: chunk.gzip
metas:
Expand Down
4 changes: 2 additions & 2 deletions tests/yaml/test-compound-indexer.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
!CompoundExecutor
components:
- !ProtobufIndexer
- !BasePbIndexer
with:
index_filename: tmp1
metas:
name: test1
- !ProtobufIndexer
- !BasePbIndexer
with:
index_filename: tmp2
metas:
Expand Down
2 changes: 1 addition & 1 deletion tests/yaml/test-compound-indexer2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
!CompoundExecutor
components:
- !ProtobufIndexer
- !BasePbIndexer
with:
index_filename: metaproto
metas:
Expand Down

0 comments on commit ab405ea

Please sign in to comment.