Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatoleAM committed Dec 4, 2023
1 parent fe4f01c commit b8ac880
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions internal/app/connection/eventstream/eventstream_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ package eventstream

import (
"encoding/json"
"errors"
"fmt"
"io"
"net"
"syscall"
"time"

"github.com/seventv/api/data/events"
Expand Down Expand Up @@ -65,15 +61,3 @@ func (es *EventStream) Read(gctx global.Context) {
}
}
}

func isNetConnClosedErr(err error) bool {
switch {
case
errors.Is(err, net.ErrClosed),
errors.Is(err, io.EOF),
errors.Is(err, syscall.EPIPE):
return true
default:
return false
}
}

0 comments on commit b8ac880

Please sign in to comment.