X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=fifos%2Fwarcs.go;h=54f86a5b72d6900f513e9da1bf3fe6a7742c8e4c;hb=aebff9ec61ff98c73f83f73f081401038699d37f;hp=46b6fda383d9cea0d620959bcc7d24dde8bd620d;hpb=decb4bfb406665dde1233e9936fee3edfe3e81da;p=tofuproxy.git diff --git a/fifos/warcs.go b/fifos/warcs.go index 46b6fda..54f86a5 100644 --- a/fifos/warcs.go +++ b/fifos/warcs.go @@ -1,20 +1,18 @@ -/* -tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU - manager, WARC/geminispace browser -Copyright (C) 2021-2022 Sergey Matveev - -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 -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU +// manager, WARC/geminispace browser +// Copyright (C) 2021-2024 Sergey Matveev +// +// 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 +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package fifos @@ -48,7 +46,7 @@ func addWARC(p string) { for { for _, warcPath := range readLinesFromFIFO(p) { if warcPath == "SAVE" { - if err := warc.SaveIndexes(); err != nil { + if err := warc.SaveIndices(); err != nil { log.Printf("%s: can not save index %s: %+v\n", p, warcPath, err) } continue