2
0

NewFrontend and NewBackend cannot fail

This commit is contained in:
Jack Christensen
2019-08-31 14:49:55 -05:00
parent 2bc8f2e6af
commit 439ea11d47
4 changed files with 6 additions and 12 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ type Frontend struct {
}
// NewFrontend creates a new Frontend.
func NewFrontend(cr ChunkReader, w io.Writer) (*Frontend, error) {
return &Frontend{cr: cr, w: w}, nil
func NewFrontend(cr ChunkReader, w io.Writer) *Frontend {
return &Frontend{cr: cr, w: w}
}
// Send sends a message to the backend.