Add gRPC user agent (#834)

This commit is contained in:
Silvano Cerza
2022-02-14 12:39:48 +01:00
committed by GitHub
parent 877c1a1559
commit 5ab3a747a6

View File

@@ -1,4 +1,5 @@
import { inject, injectable, postConstruct } from 'inversify';
import { app } from 'electron';
import { ILogger } from '@theia/core/lib/common/logger';
import { MaybePromise } from '@theia/core/lib/common/types';
import { ConfigServiceImpl } from './config-service-impl';
@@ -73,6 +74,7 @@ export abstract class GrpcClientProvider<C> {
return {
'grpc.max_send_message_length': 512 * 1024 * 1024,
'grpc.max_receive_message_length': 512 * 1024 * 1024,
'grpc.primary_user_agent': `arduino-ide/${app.getVersion()}`
};
}
}