def endpoint.result

mylsm-lsm-store@0.6.0.1 · src/coordinator/EndpointPath.bend:13

import mylsm-lsm-store@0.6.0.1/src/coordinator/EndpointPath.bend as EndpointPath
import 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{}

Uses (4)

Used by (1)