Skip to content

Commit 3599d53

Browse files
committedDec 2, 2019
Improve conversion documentation
1 parent 5539755 commit 3599d53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎ddlambda.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func MetricWithTimestamp(metric string, value float64, timestamp time.Time, tags
131131
// InvokeDryRun is a utility to easily run your lambda for testing
132132
func InvokeDryRun(callback func(ctx context.Context), cfg *Config) (interface{}, error) {
133133
wrapped := WrapHandler(callback, cfg)
134+
// Convert the wrapped handler to it's underlying raw handler type
134135
handler, ok := wrapped.(func(ctx context.Context, msg json.RawMessage) (interface{}, error))
135136
if !ok {
136137
logger.Debug("Could not unwrap lambda during dry run")

0 commit comments

Comments
 (0)