Giter Site home page Giter Site logo

gtra's People

Contributors

jinzhongmin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gtra's Issues

并发执行翻译任务报错

Hi,感谢你写的api,我在使用中遇到需要并发执行翻译任务。代码逻辑中控制了并发10个,但是最近会频繁遇到报错如下:

panic(0x1386d40, 0xc0001cc0e0)
	/usr/local/Cellar/go/1.14.5/libexec/src/runtime/panic.go:969 +0x166
github.com/jinzhongmin/gtra.gettkk(0xc0005540c6, 0xc000125d50)
	/Users/jakehu/go/pkg/mod/github.com/jinzhongmin/[email protected]/gtra.go:113 +0x1bb
github.com/jinzhongmin/gtra.tk(0x13b0714, 0x6, 0x53, 0x13af6f3)
	/Users/jakehu/go/pkg/mod/github.com/jinzhongmin/[email protected]/gtra.go:101 +0x26
github.com/jinzhongmin/gtra.getResult(0x13b0714, 0x6, 0x13afb75, 0x4, 0x13af4b2, 0x2, 0xc000125e20, 0x1, 0x1, 0xc000125e68, ...)
	/Users/jakehu/go/pkg/mod/github.com/jinzhongmin/[email protected]/gtra.go:177 +0x25b
github.com/jinzhongmin/gtra.(*Translater).Translate(0xc000125eb0, 0x13b0714, 0x6, 0xc000125eb0, 0x1055cea, 0x13cd550, 0xc00036e000)
	/Users/jakehu/go/pkg/mod/github.com/jinzhongmin/[email protected]/gtra.go:66 +0xbd

因为没有翻译成功的处理时机。我减小了并发数量,或者设置等待时间都不能根本解决这个问题,请问如何处理比较好?寻求你的建议

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.