mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-26 23:30:27 +08:00
mind the dot.
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
This commit is contained in:
parent
29aaf384cf
commit
ca38e17432
@ -47,7 +47,7 @@ func WithSimultaneousConnect(ctx context.Context, reason string) context.Context
|
||||
}
|
||||
|
||||
// EXPERIMENTAL
|
||||
// GetSimultaneousConnect returns true if the simultaneous connect option is set in the context
|
||||
// GetSimultaneousConnect returns true if the simultaneous connect option is set in the context.
|
||||
func GetSimultaneousConnect(ctx context.Context) (simconnect bool, reason string) {
|
||||
v := ctx.Value(simConnect)
|
||||
if v != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user