There were errors while compiling it. unable to create a binary from it
How did you try to compile it @kspriyan31?
just cloned and ran go build
seems to compile for me
Did the same actually
what errors do you see?
also what's your go version
?
# <http://gopkg.in/confluentinc/confluent-kafka-go.v1/kafka|gopkg.in/confluentinc/confluent-kafka-go.v1/kafka>
In file included from ..\..\go\pkg\mod\<http://gopkg.in|gopkg.in>\confluentinc\confluent-kafka-go.v1@v1.4.2\kafka\00version.go:24:
./librdkafka/rdkafka.h:83:10: fatal error: sys/socket.h: No such file or directory
83 | #include <sys/socket.h> /* for sockaddr, .. */
| ^~~~~~~~~~~~~~
compilation terminated.
go version go1.16.5 windows/amd64
so it seems librdkafka, the c lib powering the confluent connector isnt supported on windows
could you try the steps mentioned here: https://github.com/confluentinc/confluent-kafka-go/issues/128
basically you need to have MinGW gcc
installed
if thats there, the compile may work
alternatively you could try using Windows Subsystem Linux
Hey guys yeah sorry there is no release as it's using CGO (ie C extensions for go) and so it's harder to cross compile it (I didn't know about the issues about confluent-kafka-go on windows but I guess that makes it even harder)
What's the best way to throttle the number of calls to an API in babashka?
I have a sequence of calls to make from babashka to an API, but I'm not allowed to just (run! #(cmd! %) command-collection)
because the server will deny my calls if I execute them too fast. What's the best way to interleave
my commands with something like a pause for x milliseconds?
off the top of my head 😛
(interleave [call1 call2 ...] (cycle [#(Thread/sleep 1000)]))
Nice ... going to try that 🤓
Yep, with a slight variation to fit my context, it works, thanks!
2😄@thomas.ormezzano We have a pod which is using CGO here: https://github.com/babashka/pod-babashka-go-sqlite3 If you want, you can copy the configs :)
nice, thanks 🙂 I'll try to take a look when I have a bit more time