mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 14:26:37 +00:00
Add gRPC user agent (#834)
This commit is contained in:
parent
877c1a1559
commit
5ab3a747a6
@ -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()}`
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user