]> Cypherpunks.ru repositories - gocheese.git/blobdiff - ucspi.go
Additional signature with my new main key
[gocheese.git] / ucspi.go
index 8fce33db8e726227babf533a3b0d6a08473434ab..1c6300b966a577027b5ead3e680b80aadf6d7967 100644 (file)
--- a/ucspi.go
+++ b/ucspi.go
@@ -1,6 +1,6 @@
 /*
 GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -27,7 +27,7 @@ import (
 )
 
 var (
-       aLongTimeAgo = time.Unix(1, 0)
+       ALongTimeAgo = time.Unix(1, 0)
        UCSPIJob     sync.WaitGroup
 )
 
@@ -91,7 +91,7 @@ func (conn *UCSPIConn) SetReadDeadline(t time.Time) error {
        // An ugly hack to forcefully terminate pending read.
        // net/http calls SetReadDeadline(aLongTimeAgo), but file
        // descriptors are not capable to exit immediately that way.
-       if t.Equal(aLongTimeAgo) {
+       if t.Equal(ALongTimeAgo) {
                conn.eof <- struct{}{}
        }
        return os.Stdin.SetReadDeadline(t)