recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Update MariaDB recipe for Timeout

Open phxism opened this issue 2 years ago • 4 comments

Question description fiber seems not support cancelContext like net/http, for demo case, see context So code in the sub project "docker-mariadb-clean-arch"

customContext, cancel := context.WithCancel(context.Background())
	defer cancel()

should be change into

customContext, cancel := context.WithTimeout(context.Background(), 10*time.Second)
	defer cancel()

I am a green hand for golang and fiber, so i'm not sure that if i am right.

phxism avatar Apr 23 '23 10:04 phxism

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template!

welcome[bot] avatar Apr 23 '23 10:04 welcome[bot]

👋 Hello. Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 12 '23 07:08 stale[bot]

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

welcome[bot] avatar Dec 04 '24 13:12 welcome[bot]

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template!

welcome[bot] avatar Dec 04 '24 14:12 welcome[bot]

👋 Hello. Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '25 08:07 stale[bot]