1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

minor (see previous commit)

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-07 11:53:16 +03:00
parent 07806ba270
commit b063fbf3c8
3 changed files with 19 additions and 1 deletions

View File

@@ -257,7 +257,7 @@ func (ac *AccessLog) after(ctx *context.Context, lat time.Duration, method, path
var fields []memstore.Entry
if n := len(ac.Fields); n > 0 {
fields = make([]memstore.Entry, n)
fields = make([]memstore.Entry, 0, n)
for _, extract := range ac.Fields {
key, value := extract(ctx)