go/util/sremotesrv: grpc.go: Echo the client's NbsVersion in GetRepoMetadata.

This commit is contained in:
Aaron Son
2020-10-09 14:58:32 -07:00
parent 19f9e571d0
commit 4172ddbafe

View File

@@ -301,7 +301,7 @@ func (rs *RemoteChunkStore) GetRepoMetadata(ctx context.Context, req *remotesapi
return &remotesapi.GetRepoMetadataResponse{
NbfVersion: cs.Version(),
NbsVersion: nbs.StorageVersion,
NbsVersion: req.ClientRepoFormat.NbsVersion,
StorageSize: size,
}, nil
}