Cleanup: remove unused code
This commit is contained in:
parent
e598397ba4
commit
8063a3e169
@ -26,12 +26,6 @@ import (
|
|||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type loggerContextKey string
|
|
||||||
|
|
||||||
const (
|
|
||||||
loggerKey = loggerContextKey("logger")
|
|
||||||
)
|
|
||||||
|
|
||||||
func requestLogger(e echo.Context) zerolog.Logger {
|
func requestLogger(e echo.Context) zerolog.Logger {
|
||||||
logCtx := log.With().Str("remoteAddr", e.RealIP())
|
logCtx := log.With().Str("remoteAddr", e.RealIP())
|
||||||
|
|
||||||
|
@ -34,11 +34,11 @@ func TestFrameChunkerHappyBlenderStyle(t *testing.T) {
|
|||||||
|
|
||||||
func TestFrameChunkerHappySmallInput(t *testing.T) {
|
func TestFrameChunkerHappySmallInput(t *testing.T) {
|
||||||
// No frames, should be an error
|
// No frames, should be an error
|
||||||
chunks, err := jsFrameChunker(" ", 4)
|
_, err := jsFrameChunker(" ", 4)
|
||||||
assert.ErrorIs(t, err, ErrInvalidRange{Message: "empty range"})
|
assert.ErrorIs(t, err, ErrInvalidRange{Message: "empty range"})
|
||||||
|
|
||||||
// Just one frame.
|
// Just one frame.
|
||||||
chunks, err = jsFrameChunker("47", 4)
|
chunks, err := jsFrameChunker("47", 4)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, []string{"47"}, chunks)
|
assert.Equal(t, []string{"47"}, chunks)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user