Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
remove useless file
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Sep 8, 2016
1 parent 7ae91ce commit 1168486
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Open web <http://localhost:11313> to see the manager page.
![gosuv web](docs/gosuv.gif)

## Configuration
Default config file stored in directory `$HOME/.gosuv/`
Default config file stored in directory `$HOME/.gosuv/`, Set env-var `GOSUV_HOME_DIR` can change config file store directory.

- file `programs.yml` contains all program settings.
- file `config.yml` contains server config
Expand Down
24 changes: 12 additions & 12 deletions broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,22 @@ func (w *WriteBroadcaster) CloseWriters() error {
return nil
}

// nop writer
type NopWriter struct{}
// // nop writer
// type NopWriter struct{}

func (*NopWriter) Write(buf []byte) (int, error) {
return len(buf), nil
}
// func (*NopWriter) Write(buf []byte) (int, error) {
// return len(buf), nil
// }

type nopWriteCloser struct {
io.Writer
}
// type nopWriteCloser struct {
// io.Writer
// }

func (w *nopWriteCloser) Close() error { return nil }
// func (w *nopWriteCloser) Close() error { return nil }

func NopWriteCloser(w io.Writer) io.WriteCloser {
return &nopWriteCloser{w}
}
// func NopWriteCloser(w io.Writer) io.WriteCloser {
// return &nopWriteCloser{w}
// }

// chan string writer
type chanStrWriter struct {
Expand Down
6 changes: 3 additions & 3 deletions fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ func NewProcess(pg Program) *Process {
stopC: make(chan syscall.Signal),
retryLeft: pg.StartRetries,
Status: string(Stopped),
Output: NewQuickLossBroadcastWriter(outputBufferSize), // NewBufferBroadcast(outputBufferSize),
Stdout: NewQuickLossBroadcastWriter(outputBufferSize), // NewBufferBroadcast(outputBufferSize),
Stderr: NewQuickLossBroadcastWriter(outputBufferSize), // NewBufferBroadcast(outputBufferSize),
Output: NewQuickLossBroadcastWriter(outputBufferSize),
Stdout: NewQuickLossBroadcastWriter(outputBufferSize),
Stderr: NewQuickLossBroadcastWriter(outputBufferSize),
}
pr.StateChange = func(_, newStatus FSMState) {
pr.Status = string(newStatus)
Expand Down

0 comments on commit 1168486

Please sign in to comment.