|
|
@@ -22,7 +22,7 @@ func ContextWithSource(ctx context.Context, src net.Destination) context.Context
|
|
|
return context.WithValue(ctx, sourceKey, src)
|
|
|
}
|
|
|
|
|
|
-// SourceFromContext retreives source from the given context.
|
|
|
+// SourceFromContext retrieves source from the given context.
|
|
|
func SourceFromContext(ctx context.Context) (net.Destination, bool) {
|
|
|
v, ok := ctx.Value(sourceKey).(net.Destination)
|
|
|
return v, ok
|