]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - fifos/warcs.go
More correct spelling
[tofuproxy.git] / fifos / warcs.go
index 4f7dcc209d471ed7e94422d71a84403024225141..7e10c93f86d4b37b214b565781d5ba70904845ee 100644 (file)
@@ -1,7 +1,7 @@
 /*
 tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU
              manager, WARC/geminispace browser
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-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
@@ -48,7 +48,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