Function handleGRPCRequest

  • Handles a gRPC request and provides standardized error handling. This utility function wraps a gRPC request and catches any errors that occur, logging them and returning null in case of a failure.

    Type Parameters

    • T

    Parameters

    • request: (() => Promise<T>)

      A function that returns a Promise representing the gRPC request.

        • (): Promise<T>
        • Returns Promise<T>

    Returns Promise<null | T>

    A Promise containing the result of the gRPC request, or null if an error occurs.

Generated using TypeDoc