feat(sdk): 批量传输(批量/退避/信标/丢包计数)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export interface CtkConfig {
|
||||
siteId: string;
|
||||
endpoint: string;
|
||||
batchSize?: number;
|
||||
flushMs?: number;
|
||||
maxRetry?: number;
|
||||
queueMax?: number;
|
||||
}
|
||||
|
||||
export function mergeConfig(opts: CtkConfig): Required<CtkConfig> {
|
||||
return { batchSize: 10, flushMs: 15000, maxRetry: 3, queueMax: 200, ...opts };
|
||||
}
|
||||
Reference in New Issue
Block a user