File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/sdk-ts/src/client/base Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ export default class BaseGrpcConsumer {
2727 this . transport = new GrpcWebRpcTransport ( endpoint , options )
2828 }
2929
30+ /**
31+ * @deprecated Pass options into the constructor instead
32+ */
3033 public setMetadata ( map : Record < string , string > ) {
3134 this . metadata = map
3235 // Recreate transport with new metadata, preserving existing options
@@ -37,6 +40,9 @@ export default class BaseGrpcConsumer {
3740 return this
3841 }
3942
43+ /**
44+ * @deprecated Manage options within the constructor instead
45+ */
4046 public clearMetadata ( ) {
4147 this . metadata = undefined
4248 }
@@ -65,6 +71,7 @@ export default class BaseGrpcConsumer {
6571
6672 /**
6773 * Builds RpcOptions with metadata
74+ * @deprecated Options should be managed externally and passed into the constructor instead
6875 */
6976 protected getRpcOptions ( ) : RpcOptions {
7077 const options : RpcOptions = {
You can’t perform that action at this time.
0 commit comments