summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/generic
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-02-11 15:00:41 -0600
committerBrent Baude <bbaude@redhat.com>2020-02-11 15:00:41 -0600
commit5b830cca9042892af5461d87ade3e9dd61d95e43 (patch)
tree9fcc8d26d1e12d0f952dc82cfd46ccd114772be9 /pkg/api/handlers/generic
parent86b5a89d1afb641196214ed9c57e83e617776c5f (diff)
downloadpodman-5b830cca9042892af5461d87ade3e9dd61d95e43.tar.gz
podman-5b830cca9042892af5461d87ade3e9dd61d95e43.tar.bz2
podman-5b830cca9042892af5461d87ade3e9dd61d95e43.zip
apiv2 stream events
the events endpoint should be stream-based. it also needed to be registered to answer and not produce 404s. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/handlers/generic')
-rw-r--r--pkg/api/handlers/generic/containers_stats.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/pkg/api/handlers/generic/containers_stats.go b/pkg/api/handlers/generic/containers_stats.go
index f8804b5c0..cbc1be2f0 100644
--- a/pkg/api/handlers/generic/containers_stats.go
+++ b/pkg/api/handlers/generic/containers_stats.go
@@ -19,9 +19,6 @@ import (
const DefaultStatsPeriod = 5 * time.Second
func StatsContainer(w http.ResponseWriter, r *http.Request) {
- // 200 no error
- // 404 no such
- // 500 internal
runtime := r.Context().Value("runtime").(*libpod.Runtime)
decoder := r.Context().Value("decoder").(*schema.Decoder)