chore: check interface satisfaction w/o allocating new variable (#1454)

master
Letian Jiang 3 years ago committed by GitHub
parent 272a3f347d
commit ce05c429fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ import (
) )
// assert that metadataSupplier implements the TextMapCarrier interface // assert that metadataSupplier implements the TextMapCarrier interface
var _ propagation.TextMapCarrier = new(metadataSupplier) var _ propagation.TextMapCarrier = (*metadataSupplier)(nil)
type metadataSupplier struct { type metadataSupplier struct {
metadata *metadata.MD metadata *metadata.MD

Loading…
Cancel
Save