Ubuntu Pastebin

Paste from rog at Thu, 27 Apr 2017 13:00:32 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
package main
import (
	"github.com/juju/juju/worker/lease"
	"time"
)

func main() {
	var t *lease.Manager
	t.Claim("x", "b", time.Second)
}

result:

panic: claim called

goroutine 1 [running]:
github.com/juju/juju/worker/lease.(*Manager).Claim(0x0, 0x4ca110, 0x1, 0x4ca10c, 0x1, 0x3b9aca00, 0xc420041f78, 0x496159)
	/home/rog/src/go/src/github.com/juju/juju/worker/lease/manager.go:122 +0x39
Download as text