8000 Comparing storj:main...cockroachdb:main · storj/drpc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
10000 base repository: storj/drpc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: cockroachdb/drpc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 7 commits
  • 9 files changed
  • 3 contributors

Commits on May 7, 2025

  1. codegen: use cockroachdb/errors package

    The `cockroachdb` linters don't allow using the standard `errors` package,
    even in generated `*_drpc.pb.go` files.
    This change replaces its usage in `UnimplementedServer` with
    `cockroachdb/errors` to comply with linting requirements.
    shubhamdhama committed May 7, 2025
    Configuration menu
    Copy the full SHA
    a793c5c View commit details
    Browse the repository at this point in the history

Commits on May 29, 2025

  1. drpcclient: add client interceptor support in drpc (#6)

    Interceptors are not natively supported by drpc.
    Here, we add support for interceptors in drpc. The changes include
    definition of client interceptor interface types, logic to chain multiple
    unary/stream interceptors.
    This change also introduces a new struct `drpcclient.ClientConn` which
    satisfies the drpc.Conn interface, and decorates underlying
    drpc Connection object with interceptors. The struct drpcclient.ClientConn
    is defined such that it can be initialized with a dialer function which supplies
    underlying connection either concretely or from a pool.
    Functional options pattern is employed to provide flexibility with addition of
    unary and chain interceptors on ClientConn struct.
    
    Epic: CRDB-50378
    Fixes: #146086
    shaikzakiriitm authored May 29, 2025
    Configuration menu
    Copy the full SHA
    aef0a2a View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. codegen: update RecvMsg for gRPC compatibility (#3)

    It's already here in the implementation of the StreamServer implementations
    but not available through interface, so essentially it's hidden. In this
    change we update its parameters to become compatible with gRPC and added
    that definition in the interface.
    shubhamdhama authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    e416077 View commit details
    Browse the repository at this point in the history
  2. codegen: generate common interfaces for stream server and client (#2)

    These interfaces contain the shared methods between DRPC and gRPC
    stream servers and clients as used in cockroach.
    shubhamdhama authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    3e0c530 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2025

  1. codegen: create RPC service interface with gRPC & DRPC adapters (#4)

    Define a shared `RPC<Service>Client` interface to wrap both gRPC's
    `<Service>Client` and DRPC's `DRPC<Service>Client`. Streaming methods will
    also return the common `RPC<Service>_<Method>Client`.
    
    Adds two simple adapters:
    - `NewGRPC<Service>ClientAdapter`
    - `NewDRPC<Service>ClientAdapter`
    
    They implement `RPC<Service>Client`, so we can swap clients at runtime via
    the cluster setting.
    shubhamdhama authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    5b0c5d2 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2025

  1. drpcclient: create a clientconn wrapping drpc.Conn

    Here, we are updating constructor of clientConn to take in a
    `drpc.Conn` type object instead of a supplier of `drpc.Conn`.
    This simplifies the usage/construction of clientConn, and moves
    the responsibility of invoking a supplier/dialer to the caller of
    constructor. This way, closing of drpcpool would be a clear duty
    of the caller of this constructor.
    cthumuluru-crdb authored and shaikzakiriitm committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    ab155d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e79a954 View commit details
    Browse the repository at this point in the history
Loading
0