1

Fix linter warnings

This commit is contained in:
2020-02-22 18:33:33 +04:00
parent f30fb4dc67
commit fd184225f1
9 changed files with 35 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ import (
// getMemoryUsage returns memory usage for logger.
func (c *Context) getMemoryUsage(e *zerolog.Event, level zerolog.Level, message string) {
var m runtime.MemStats
runtime.ReadMemStats(&m)
e.Str("memalloc", fmt.Sprintf("%dMB", m.Alloc/1024/1024))