File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
* .swp
2
2
.env
3
+ .go-version
3
4
sltd
4
5
pkg /*
5
6
dist /*
Original file line number Diff line number Diff line change 1
1
language : go
2
2
3
3
go :
4
- - 1.8
4
+ - 1.11
5
5
- master
6
6
7
7
before_install :
@@ -15,4 +15,4 @@ deploy:
15
15
script : make dist
16
16
on :
17
17
branch : master
18
- go : 1.8
18
+ go : 1.11
Original file line number Diff line number Diff line change @@ -83,8 +83,9 @@ func (td *transferd) flush() error {
83
83
hash := md5 .New ()
84
84
go func () {
85
85
gw := gzip .NewWriter (writer )
86
- md5sum = base64 .StdEncoding .EncodeToString (hash .Sum ([]byte (strings .Join (chunk , "\n " ))))
87
- gw .Write ([]byte (strings .Join (chunk , "\n " )))
86
+ buffer := []byte (strings .Join (chunk , "\n " ))
87
+ gw .Write (buffer )
88
+ md5sum = base64 .StdEncoding .EncodeToString (hash .Sum (buffer ))
88
89
gw .Close ()
89
90
writer .Close ()
90
91
}()
You can’t perform that action at this time.
0 commit comments