Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken @go1.17 #10

Open
xiekeyi98 opened this issue Aug 17, 2021 · 2 comments
Open

broken @go1.17 #10

xiekeyi98 opened this issue Aug 17, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@xiekeyi98
Copy link

go 1.17 it is relased.

And this repo will broken at the unit test.

@xiekeyi98
Copy link
Author

image

package main

import (
	"context"
	"fmt"

	"github.com/huandu/go-tls"
)

func main() {
	ctx, can := context.WithCancel(context.Background())
	go func() {
		defer can()
		k, v := "k", "v"
		tls.Set(k, tls.MakeData(v))
		g, exi := tls.Get(k)
		fmt.Printf("%v,[%v,%v]\n", tls.ID(), g, exi)
	}()
	<-ctx.Done()
}

@huandu huandu added the bug Something isn't working label Aug 18, 2021
@huandu
Copy link
Owner

huandu commented Aug 18, 2021

Thanks for letting me know this. I'll take a look at it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants