Skip to content

Update docs and examples and tests to use NewClient instead of Dial #7049

@dfawley

Description

@dfawley

After #7010 we need to make sure all our documentation recommends NewClient. We should still retain some tests for Dial but the majority of them should probably be converted to use NewClient as well.

Tasks:

  • Tests cases that don't rely upon Dial (tests for WithTimeout/etc should keep using Dial).
  • In documentation, update from Dial to NewClient everywhere (note: this includes http://github.com/grpc/grpc.io)
  • Update anti-patterns doc to discuss the differences between Dial and NewClient and also mention WithTimeout specifically in the existing section about Dial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ClientIncludes Channel/Subchannel/Streams, Connectivity States, RPC Retries, Dial/Call Options and more.P2Type: DocumentationDocumentation or examples

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions