Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
d6b2fec5
Commit
d6b2fec5
authored
Jun 14, 2019
by
Eric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove print code
parent
8fe24042
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
4 deletions
+1
-4
elfhandler.go
pkg/httpd/elfhandler.go
+0
-1
sftpvolume.go
pkg/httpd/sftpvolume.go
+0
-1
recorder.go
pkg/proxy/recorder.go
+0
-1
switch.go
pkg/proxy/switch.go
+1
-1
No files found.
pkg/httpd/elfhandler.go
View file @
d6b2fec5
...
@@ -96,7 +96,6 @@ func sftpHostConnectorView(wr http.ResponseWriter, req *http.Request) {
...
@@ -96,7 +96,6 @@ func sftpHostConnectorView(wr http.ResponseWriter, req *http.Request) {
addUserVolume
(
sid
,
userV
)
addUserVolume
(
sid
,
userV
)
}
}
logger
.
Debugf
(
"sid: %s"
,
sid
)
logger
.
Debugf
(
"sid: %s"
,
sid
)
logger
.
Debug
(
userVolumes
)
con
:=
elfinder
.
NewElFinderConnector
([]
elfinder
.
Volume
{
userV
})
con
:=
elfinder
.
NewElFinderConnector
([]
elfinder
.
Volume
{
userV
})
con
.
ServeHTTP
(
wr
,
req
)
con
.
ServeHTTP
(
wr
,
req
)
}
}
pkg/httpd/sftpvolume.go
View file @
d6b2fec5
...
@@ -392,7 +392,6 @@ func (u *UserVolume) UploadChunk(cid int, dirPath, chunkName string, reader io.R
...
@@ -392,7 +392,6 @@ func (u *UserVolume) UploadChunk(cid int, dirPath, chunkName string, reader io.R
return
err
return
err
}
}
_
,
err
=
io
.
Copy
(
fd
,
reader
)
_
,
err
=
io
.
Copy
(
fd
,
reader
)
fmt
.
Println
(
err
)
return
err
return
err
}
}
...
...
pkg/proxy/recorder.go
View file @
d6b2fec5
...
@@ -38,7 +38,6 @@ func (c *CommandRecorder) initial() {
...
@@ -38,7 +38,6 @@ func (c *CommandRecorder) initial() {
c
.
queue
=
make
(
chan
*
model
.
Command
,
10
)
c
.
queue
=
make
(
chan
*
model
.
Command
,
10
)
c
.
storage
=
NewCommandStorage
()
c
.
storage
=
NewCommandStorage
()
c
.
closed
=
make
(
chan
struct
{})
c
.
closed
=
make
(
chan
struct
{})
//c.storage, _ = NewFileCommandStorage("/tmp/abc.log")
go
c
.
record
()
go
c
.
record
()
}
}
...
...
pkg/proxy/switch.go
View file @
d6b2fec5
...
@@ -66,7 +66,7 @@ func (s *SwitchSession) Terminate() {
...
@@ -66,7 +66,7 @@ func (s *SwitchSession) Terminate() {
func
(
s
*
SwitchSession
)
recordCommand
()
{
func
(
s
*
SwitchSession
)
recordCommand
()
{
for
command
:=
range
s
.
parser
.
cmdRecordChan
{
for
command
:=
range
s
.
parser
.
cmdRecordChan
{
if
command
[
0
]
==
""
&&
command
[
1
]
==
""
{
if
command
[
0
]
==
""
{
continue
continue
}
}
cmd
:=
s
.
generateCommandResult
(
command
)
cmd
:=
s
.
generateCommandResult
(
command
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment