def endpoint.result
import mylsm-lsm-store@0.6.0.1/src/coordinator/EndpointPath.bend as EndpointPathimport Base
13# Appends the fixed owner endpoint name only when the path remains bounded.
14def endpoint.result(path: String, admitted: Bool) -> Decision:
15 match path:
16 case canonical:
17 match admitted:
18 case True{}: Endpoint{canonical ++ "/MYLSM.sock"}
19 case False{}: PathTooLong{}