Ver código fonte

优化代码

niujiuru 1 mês atrás
pai
commit
126f081e72
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      mqtt_reporter/photo.go

+ 1 - 1
mqtt_reporter/photo.go

@@ -88,7 +88,7 @@ func (r *MQTTReporter) uploadPhotoToImagServers(imgFile string) {
 	}
 }
 
-func (r *MQTTReporter) CountOldPhotos(dir string) (int, error) {
+func (r *MQTTReporter) countOldPhotos(dir string) (int, error) {
 	files, err := os.ReadDir(dir)
 	if err != nil {
 		return 0, err