File: Compatibility-with-golang-github-pierrec-lz4-2.5.2.patch

package info (click to toggle)
syncthing 1.29.5~ds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,848 kB
  • sloc: javascript: 37,288; sh: 1,838; xml: 1,115; makefile: 66
file content (33 lines) | stat: -rw-r--r-- 857 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Shengjing Zhu <zhsj@debian.org>
Date: Wed, 11 Jan 2023 18:19:35 +0800
Subject: Compatibility with golang-github-pierrec-lz4 2.5.2

Forwarded: not-needed
Last-Update: 2024-02-10
---
 lib/protocol/protocol.go      | 2 +-
 lib/protocol/protocol_test.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/lib/protocol/protocol.go
+++ b/lib/protocol/protocol.go
@@ -27,7 +27,7 @@ import (
 	"sync"
 	"time"
 
-	lz4 "github.com/pierrec/lz4/v4"
+	lz4 "github.com/pierrec/lz4"
 	"google.golang.org/protobuf/proto"
 
 	"github.com/syncthing/syncthing/internal/gen/bep"
--- a/lib/protocol/protocol_test.go
+++ b/lib/protocol/protocol_test.go
@@ -18,7 +18,7 @@ import (
 	"testing"
 	"time"
 
-	lz4 "github.com/pierrec/lz4/v4"
+	lz4 "github.com/pierrec/lz4"
 	"google.golang.org/protobuf/proto"
 
 	"github.com/syncthing/syncthing/internal/gen/bep"