File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1313 },
1414
1515 // Use 'forwardPorts' to make a list of ports inside the container available locally.
16- // "forwardPorts": [],
16+ "forwardPorts" : [80 ],
1717
1818 // Use 'postCreateCommand' to run commands after the container is created.
19- "postCreateCommand" : " apt update && apt install --yes libmysqlclient-dev && rm /var/lib/opensearch/nodes/0/node.lock /var/lib/opensearch/nodes/0/_state/write.lock"
19+ "postCreateCommand" : " apt update && apt install --yes libmysqlclient-dev && rm /var/lib/opensearch/nodes/0/node.lock /var/lib/opensearch/nodes/0/_state/write.lock" ,
2020
2121 // Configure tool-specific properties.
2222 // "customizations": {},
2323
2424 // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
25- // "remoteUser": "root"
25+ // "remoteUser": "root",
26+ "customizations" : {
27+ "jetbrains" : {
28+ "settings" : {
29+ "com.intellij:app:HttpConfigurable.use_proxy_pac" : true
30+ }
31+ }
32+ }
2633}
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ async fn handler(
6565 . flat_map ( |item| item. proteins . iter ( ) . map ( |protein| protein. uniprot_accession . clone ( ) ) )
6666 . collect ( ) ;
6767
68+ if accession_numbers. is_empty ( ) {
69+ return Ok ( vec ! [ ] ) ;
70+ }
71+
6872 let accessions_map = get_accessions_map ( connection, & accession_numbers)
6973 . await
7074 . map_err ( |e| {
You can’t perform that action at this time.
0 commit comments