mirror of
https://github.com/restic/restic.git
synced 2024-12-27 10:17:58 +00:00
23 lines
504 B
Go
23 lines
504 B
Go
|
// +build !go1.10
|
||
|
|
||
|
package rclone
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// On Go < 1.10, it's not possible to set read/write deadlines on files, so we just ignore that.
|
||
|
|
||
|
// SetDeadline sets the read/write deadline.
|
||
|
func (s *StdioConn) SetDeadline(t time.Time) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// SetReadDeadline sets the read/write deadline.
|
||
|
func (s *StdioConn) SetReadDeadline(t time.Time) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// SetWriteDeadline sets the read/write deadline.
|
||
|
func (s *StdioConn) SetWriteDeadline(t time.Time) error {
|
||
|
return nil
|
||
|
}
|