Skip to content

v1.7.0

Latest

Choose a tag to compare

@nexcode nexcode released this 30 Mar 22:09

This release introduces new configuration options and updates APIs to support context cancellation.

Added Options

  • ServerOptions.StopTimeout() determines the server's shutdown behavior when its context is canceled. If greater than zero, a graceful stop is applied; otherwise, it stops immediately. Default is 0.
  • ServerOptions.EtcdClientTimeout() and ClientOptions.EtcdClientTimeout() configure the timeout duration for etcd client operations. Default is 5s.
  • ServerOptions.EtcdLeaseTimeout() sets the Time-To-Live (TTL) duration for the etcd lease. Default is 5s.

Changed (Breaking API Updates)

  • (*RPCPlatform).NewClient() and (*Server).Serve() now require context.Context for proper lifecycle and cancellation management.