Improve network usage for small text changes #166

Merged
schmelczer merged 9 commits from asch/compact-reconcile into main 2025-11-16 22:10:22 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit c37cb3df83 - Show all commits

View file

@ -348,7 +348,7 @@ export class SyncService {
}
private getDefaultHeaders(
{ type }: { type?: "json" | "form" } = { type: undefined }
{ type }: { type?: "json" } = { type: undefined }
): Record<string, string> {
const headers: Record<string, string> = {
"device-id": this.deviceId,
@ -357,8 +357,6 @@ export class SyncService {
if (type === "json") {
headers["Content-Type"] = "application/json";
} else if (type === "form") {
headers["Content-Type"] = "multipart/form-data";
}
return headers;

View file

@ -350,6 +350,7 @@ mod tests {
#[test]
fn test_restart_behavior() {
let temp_dir = std::env::temp_dir().join("test_restart_behavior");
let _ = fs::remove_dir_all(&temp_dir);
// Create initial writer and write some data
{