Skip to content

Commit 0b0ccfa

Browse files
committed
Add check in api crate for dimension mismatch while insertion; Add tests for the same
1 parent 048ed39 commit 0b0ccfa

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

crates/grpc_server/.sample.env

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
GRPC_SERVER_ROOT_PASSWORD=123 // required
2-
GRPC_SERVER_DIMENSION=3 // required
1+
GRPC_SERVER_ROOT_PASSWORD=123 # required
2+
GRPC_SERVER_DIMENSION=3 # required
33

4-
GRPC_SERVER_HOST=localhost // defaults to 127.0.0.1 aka localhost
5-
GRPC_SERVER_PORT=8080 // defaults to 8080
6-
GRPC_SERVER_STORAGE_TYPE=inmemory // (inmemory/rocksdb) defaults to 'inmemory'
7-
GRPC_SERVER_INDEX_TYPE=flat // defaults to flat
8-
GRPC_SERVER_DATA_PATH=data // defaults to a temporary directory
9-
GRPC_SERVER_LOGGING=true // defaults to true
4+
GRPC_SERVER_HOST=localhost # defaults to 127.0.0.1 aka localhost
5+
GRPC_SERVER_PORT=8080 # defaults to 8080
6+
GRPC_SERVER_STORAGE_TYPE=inmemory # (inmemory/rocksdb) defaults to 'inmemory'
7+
GRPC_SERVER_INDEX_TYPE=flat # defaults to flat
8+
GRPC_SERVER_DATA_PATH=data # defaults to a temporary directory
9+
GRPC_SERVER_LOGGING=true # defaults to true

crates/grpc_server/src/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)