Skip to content

Commit

Permalink
Update gRPC version to 1.58.0 (#26)
Browse files Browse the repository at this point in the history
* Update grpc version to 1.58.0

* run integration tests and clean up
  • Loading branch information
rohanshah18 authored Sep 27, 2023
1 parent 5f4b238 commit dcd85fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {
jcenter()
}

def grpcVersion = '1.53.0'
def grpcVersion = '1.58.0'

dependencies {
api "io.grpc:grpc-protobuf:${grpcVersion}"
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/io/pinecone/PineconeConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ public PineconeConnection(PineconeClientConfig clientConfig, PineconeConnectionC
: buildChannel(clientConfig, connectionConfig);
channel.notifyWhenStateChanged(channel.getState(false), this::onConnectivityStateChanged);
Metadata metadata = assembleMetadata(clientConfig, connectionConfig);
blockingStub = applyDefaultBlockingStubConfig(
MetadataUtils.attachHeaders(VectorServiceGrpc.newBlockingStub(channel), metadata));
asyncStub = MetadataUtils.attachHeaders(VectorServiceGrpc.newStub(channel), metadata);
blockingStub = VectorServiceGrpc
.newBlockingStub(channel)
.withInterceptors(MetadataUtils.newAttachHeadersInterceptor(metadata));
asyncStub = VectorServiceGrpc
.newStub(channel)
.withInterceptors(MetadataUtils.newAttachHeadersInterceptor(metadata));
logger.debug("created new PineconeConnection for channel: {}", channel);
}

Expand Down

0 comments on commit dcd85fc

Please sign in to comment.