Skip to content

Commit

Permalink
feat(el): Add el_shared module for general el public port specs
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiWo committed Jun 30, 2024
1 parent 77e4950 commit 59669f6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/el/el_shared.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
shared_utils = import_module("../shared_utils/shared_utils.star")
constants = import_module("../package_io/constants.star")

def get_general_el_public_port_specs(public_ports_for_component):
discovery_port = public_ports_for_component[0]
public_port_assignments = {
constants.TCP_DISCOVERY_PORT_ID: discovery_port,
constants.UDP_DISCOVERY_PORT_ID: discovery_port,
constants.ENGINE_RPC_PORT_ID: public_ports_for_component[1],
}
public_ports = shared_utils.get_port_specs(public_port_assignments)
return public_ports, discovery_port

0 comments on commit 59669f6

Please sign in to comment.