incremental commit, manual changes to support merge

This commit is contained in:
philip-morlier
2023-07-11 17:01:10 -07:00
parent e516d5842c
commit dc56f2a361
5 changed files with 30 additions and 53 deletions
+7
View File
@@ -6,6 +6,13 @@ import (
"github.com/ethereum/go-ethereum/log"
)
// Is t context.Context or *context.Context?
func isContextType(t reflect.Type) bool {
for t.Kind() == reflect.Ptr {
t = t.Elem()
}
return t == contextType
}
func isChanType(t reflect.Type) bool {
// Pointers to channels are weird, but whatever