Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Aug 2, 2020
1 parent 4c0c6a0 commit f3ba634
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Checkout the `/server` command
## Known Bugs / Limitations

Remember that Gate is in a very early stage and there are many
more thins planned (e.g. command system, more events, stability etc.).
more things planned (e.g. command system, more events, stability etc.).

- Can't login sometime in online mode.
- _Dev note: Is this due to Mojang API database latencies when
Expand Down
2 changes: 1 addition & 1 deletion pkg/event/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (m *Manager) Subscribe(eventType Type, priority int, fn HandlerFn) (unsubsc
}
}

// Fire fires an event in a new goroutine and returns immediately.
// FireParallel fires an event in a new goroutine and returns immediately.
// It optionally runs handlers after all subscribers are done and passes
// the potentially modified version of the fired event.
// If an after handler panics no further handlers in the slice will be run.
Expand Down
4 changes: 2 additions & 2 deletions pkg/proxy/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type sessionHandler interface {
type minecraftConn struct {
proxy *Proxy // convenient backreference

c net.Conn // Underlying connection: use rw for reads & writes.
c net.Conn // Underlying connection

// readLoop owns these fields
readBuf *bufio.Reader
Expand All @@ -47,7 +47,7 @@ type minecraftConn struct {
writeBuf *bufio.Writer
encoder *codec.Encoder

closed chan struct{} // ends readLoop & writeLoop
closed chan struct{} // indicates connection is closed
closeOnce sync.Once // Makes sure the connection is closed once, while blocking proceeding calls.
knownDisconnect atomic.Bool // Silences disconnect (any error is known)

Expand Down

0 comments on commit f3ba634

Please sign in to comment.