mirror of
				https://github.com/owncast/owncast.git
				synced 2025-10-31 18:18:06 +08:00 
			
		
		
		
	Fix all golangci-lint warnings surfaced by v2.4.0 (#4567)
* Initial plan * Fix all golangci-lint warnings (21 issues resolved) Co-authored-by: gabek <414923+gabek@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
This commit is contained in:
		| @ -114,11 +114,7 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { | ||||
|  | ||||
| 	w := flv.NewMuxer(rtmpIn) | ||||
|  | ||||
| 	for { | ||||
| 		if !_hasInboundRTMPConnection { | ||||
| 			break | ||||
| 		} | ||||
|  | ||||
| 	for _hasInboundRTMPConnection { | ||||
| 		// If we don't get a readable packet in 10 seconds give up and disconnect | ||||
| 		if err := _rtmpConnection.SetReadDeadline(time.Now().Add(10 * time.Second)); err != nil { | ||||
| 			log.Debugln(err) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Copilot
					Copilot