mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 14:34:24 +08:00

we shouldn't use internal packages. License: MIT Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
15 lines
231 B
Go
15 lines
231 B
Go
package diagnostics_pb
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
func (m *Message) GetTimeoutDuration() time.Duration {
|
|
return time.Duration(m.GetTimeout())
|
|
}
|
|
|
|
func (m *Message) SetTimeoutDuration(t time.Duration) {
|
|
it := int64(t)
|
|
m.Timeout = &it
|
|
}
|