mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-01-15 02:30:05 +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
|
// 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) {
|
func GetSimultaneousConnect(ctx context.Context) (simconnect bool, reason string) {
|
||||||
v := ctx.Value(simConnect)
|
v := ctx.Value(simConnect)
|
||||||
if v != nil {
|
if v != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user