apkipa 6 dní pred
rodič
commit
237427ab72
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      main.go

+ 1 - 0
main.go

@@ -1082,6 +1082,7 @@ func upload_one_part(app AppCtx, streamInfo *StreamMetadata, streamName string,
 			if err != nil {
 				return fmt.Errorf("failed to connect to stck: %w", err)
 			}
+			defer c.Close()
 			/*
 				┌─name────────┬─type────────────────────┬─default_type─┬─default_expression─┬─comment───────────────────┬─codec_expression─┬─ttl_expression─┐
 				│ metric_name │ LowCardinality(String)  │              │                    │ Metric name               │                  │                │