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.
base repository: grpc/grpc-swift
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.2
Choose a base ref
...
head repository: grpc/grpc-swift
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.2.0
Choose a head ref
  • 6 commits
  • 34 files changed
  • 4 contributors

Commits on Mar 27, 2025

  1. Improve error message when client is run when shutdown (#2215)

    Motivation:
    
    GRPCClient can throw an error when run is called more than once or if
    run is called after it has been shutdown. Normally this would happen if
    a user caller 'run()' more than once, but can also happen if
    'withGRPCClient' is called and the client is never used and the body
    returns quickly.
    
    Modifications:
    
    - Improve the error message
    
    Result:
    
    Better error message.
    glbrntt authored Mar 27, 2025
    Configuration menu
    Copy the full SHA
    edb1ec6 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2025

  1. Add Swift 6.1 CI (#2221)

    Motivation:
    
    Swift 6.1 has been released, we should add it to our CI coverage.
    
    Modifications:
    
    - Add additional Swift 6.1 jobs where appropriate in main.yml,
    pull_request.yml
    - Add thresholds for Swift 6.1
    
    Result:
    
    Improved test coverage.
    glbrntt authored Apr 14, 2025
    Configuration menu
    Copy the full SHA
    e0ba0ed View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2025

  1. Set tolerance to zero when using Task.sleep (#2225)

    `Task.sleep` will by default try and coalesce multiple timers into one,
    mostly for client-specific reasons such as performance, power
    consumption, etc.
    
    However, this is undesirable on servers, as it can increase latency,
    memory usage, and (in the case of gRPC) may result in timeouts not
    firing when they should.
    
    We can avoid this by setting the sleep `tolerance` to zero.
    gjcairo authored Apr 25, 2025
    Configuration menu
    Copy the full SHA
    c295efd View commit details
    Browse the repository at this point in the history

Commits on May 1, 2025

  1. Fix a few warnings (#2229)

    Motivation:
    
    We should aim to keep warnings at zero. There were a few littered around
    as a result of Swift 6.1.
    
    Modifications:
    
    - Fix the warnings
    - Enabled warnings-as-errors in CI to avoid regressions
    
    Result:
    
    No warnings
    glbrntt authored May 1, 2025
    Configuration menu
    Copy the full SHA
    d8185e7 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2025

  1. Add a new field, transportSpecific to ServerContext (#2228)

    Motivation:
    
    Currently there's no way to plumb through details from the transport
    level to a request handler. Adding this field allows transports, such as
    the nio transport, to add the peer certificate to the server context
    when using mTLS.
    
    From there there it's easy for an interceptor to take this data and
    propogate it forward to a request handler.
    
    Modifications:
    
    This PR adds a single field to the ServerContext that transports can use
    
    Result:
    
    A new field will be accessible to transports and consumers of the API
    
    ---------
    
    Co-authored-by: George Barnett <gbarnett@apple.com>
    jtdavey and glbrntt authored May 2, 2025
    Configuration menu
    Copy the full SHA
    0d850d6 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2025

  1. Generate availability annotations (#2232)

    Motivation:
    
    gRPC is moving from specifying the platforms in the package manifest to
    annotating code with availability annotations. In order to do this the
    generateed code must also be annotated.
    
    Modifications:
    
    - Generate appropriate annotations
    
    Result:
    
    Generated code has availability annotations
    
    ---------
    
    Co-authored-by: Gus Cairo <me@gustavocairo.com>
    glbrntt and gjcairo authored May 8, 2025
    Configuration menu
    Copy the full SHA
    b18eb73 View commit details
    Browse the repository at this point in the history
Loading