Skip to content

Commit

Permalink
transcode always without cache right now
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Nov 5, 2024
1 parent fbd20d8 commit c75440b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/utrack/gin-csrf v0.0.0-20190424104817-40fb8d2c8fca
github.com/webtor-io/abuse-store v0.0.0-20230514145349-23cc55871d7e
github.com/webtor-io/claims-provider v0.0.0-20240414120741-d7e398fc01d8
github.com/webtor-io/common-services v0.0.0-20241022160325-d391acd827ab
github.com/webtor-io/common-services v0.0.0-20241105172818-f7eb346e94e6
github.com/webtor-io/lazymap v0.0.0-20221030185154-1799721becef
github.com/webtor-io/rest-api v0.0.0-20231229193338-6669290c58f0
github.com/yargevad/filepathx v1.0.0
Expand Down Expand Up @@ -104,7 +104,7 @@ require (
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.20.5 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.60.0 // indirect
github.com/prometheus/common v0.60.1 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/satori/go.uuid v1.2.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ github.com/prometheus/common v0.59.1 h1:LXb1quJHWm1P6wq/U824uxYi4Sg0oGvNeUm1z5dJ
github.com/prometheus/common v0.59.1/go.mod h1:GpWM7dewqmVYcd7SmRaiWVe9SSqjf0UrwnYnpEZNuT0=
github.com/prometheus/common v0.60.0 h1:+V9PAREWNvJMAuJ1x1BaWl9dewMW4YrHZQbx0sJNllA=
github.com/prometheus/common v0.60.0/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw=
github.com/prometheus/common v0.60.1 h1:FUas6GcOw66yB/73KC+BOZoFJmbo/1pojoILArPAaSc=
github.com/prometheus/common v0.60.1/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw=
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
Expand Down Expand Up @@ -568,6 +570,8 @@ github.com/webtor-io/common-services v0.0.0-20241022155132-03e2d6f4dd95 h1:MQrGy
github.com/webtor-io/common-services v0.0.0-20241022155132-03e2d6f4dd95/go.mod h1:6jUeO6R+ytZnEJj7PlcLEQZfWaxw8ovav73BP83MTlI=
github.com/webtor-io/common-services v0.0.0-20241022160325-d391acd827ab h1:71AxBsmqKl3S/8d8ju7id+VL1QwVdHlepn/ntv/lFlE=
github.com/webtor-io/common-services v0.0.0-20241022160325-d391acd827ab/go.mod h1:6jUeO6R+ytZnEJj7PlcLEQZfWaxw8ovav73BP83MTlI=
github.com/webtor-io/common-services v0.0.0-20241105172818-f7eb346e94e6 h1:CESAOwQjDsIAuW5hIEpWFdu+ncvuycwRQZ/h5zwmigQ=
github.com/webtor-io/common-services v0.0.0-20241105172818-f7eb346e94e6/go.mod h1:6jUeO6R+ytZnEJj7PlcLEQZfWaxw8ovav73BP83MTlI=
github.com/webtor-io/lazymap v0.0.0-20221030185154-1799721becef h1:tSAcIGxgmsxFJnLRyTkhzFhjGAtaOZ5g2osBHG3JYBs=
github.com/webtor-io/lazymap v0.0.0-20221030185154-1799721becef/go.mod h1:za/bioTGK3VjG3+mK7/kpx0TV8++ytZkdOQ1MJ2HTjM=
github.com/webtor-io/magnet2torrent v0.0.0-20220312143110-bc1a7e4bcbba h1:OyPsU+YnNo0h22PfqfQHtkBTO9vKllKgy94RzF/Ga3c=
Expand Down
12 changes: 8 additions & 4 deletions serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@ func serve(c *cli.Context) error {
var servers []cs.Servable
// Setting Probe
probe := cs.NewProbe(c)
servers = append(servers, probe)
defer probe.Close()
if probe != nil {
servers = append(servers, probe)
defer probe.Close()
}

// Setting Pprof
pprof := cs.NewPprof(c)
servers = append(servers, pprof)
defer pprof.Close()
if pprof != nil {
servers = append(servers, pprof)
defer pprof.Close()
}

// Setting template renderer
re := multitemplate.NewRenderer()
Expand Down

0 comments on commit c75440b

Please sign in to comment.