johnsonjh / jleveldb

jleveldb: JLevelDB is an implementation of the LevelDB key/value database in the Go programming language, based on GoLevelDB

Home Page:https://github.com/johnsonjh/jleveldb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(SCC-ST1011) Poorly chosen name for variable of type time.Duration

johnsonjh opened this issue · comments

Description

time.Duration values represent an amount of time, which is represented as a count of nanoseconds. An expression like 5 * time.Microsecond yields the value 5000. It is therefore not appropriate to suffix a variable of type time.Duration with any time unit, such as Msec or Milli.

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/jleveldb/issue/SCC-ST1011/occurrences/

⚠️ This has been marked to be closed in 7 days.