mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
increase buffer
This commit is contained in:
parent
f0815c9806
commit
56f9d576ff
2 changed files with 3 additions and 3 deletions
4
main.go
4
main.go
|
@ -34,8 +34,8 @@ func main() {
|
||||||
err = c.Send(croc.TransferOptions{
|
err = c.Send(croc.TransferOptions{
|
||||||
// PathToFile: "../wskeystore/README.md",
|
// PathToFile: "../wskeystore/README.md",
|
||||||
// PathToFile: "./src/croc/croc.go",
|
// PathToFile: "./src/croc/croc.go",
|
||||||
PathToFiles: []string{"C:\\Users\\zacks\\go\\src\\github.com\\schollz\\croc\\src\\croc\\croc.go", "croc.exe"},
|
// PathToFiles: []string{"C:\\Users\\zacks\\go\\src\\github.com\\schollz\\croc\\src\\croc\\croc.go", "croc.exe"},
|
||||||
// PathToFiles: []string{"croc.exe"},
|
PathToFiles: []string{"croc.exe"},
|
||||||
KeepPathInRemote: false,
|
KeepPathInRemote: false,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -26,7 +26,7 @@ import (
|
||||||
|
|
||||||
var log = logrus.New()
|
var log = logrus.New()
|
||||||
|
|
||||||
const BufferSize = 4096 * 4
|
const BufferSize = 4096 * 2
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.SetFormatter(&logrus.TextFormatter{ForceColors: true})
|
log.SetFormatter(&logrus.TextFormatter{ForceColors: true})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue