Fix storing struct in context (#2126)

This commit is contained in:
Michal Niewrzal 2019-06-05 16:02:29 +02:00 committed by GitHub
parent ccb158c99b
commit 68c8ce63a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ type temp struct {
// WithTempData creates context with information how store temporary data, in memory or on disk
func WithTempData(ctx context.Context, directory string, inmemory bool) context.Context {
temp := &temp{
temp := temp{
inmemory: inmemory,
directory: directory,
}