2016-06-24 9 views
0

私は私が行くとの経験がない問題のある行コンパイルエラーが発生しますか?

# GOPATH=`pwd` /usr/local/go/bin/go get github.com/andresdouglas/cuttle 
# github.com/andresdouglas/cuttle 
src/github.com/andresdouglas/cuttle/main.go:103: zone.GetController(r.URL.Host, r.URL.Path).Acquire() used as value 

Here isを実行することにより、this pull request

をマージa fork of cuttleをコンパイルしようとしています。それはエラーですか?コンパイルされたバイナリは更新されていないようです。

答えて

2

チェックソースコードhere

// Acquire permission from NoopControl. 
// Permission is granted immediately since it does not perform any rate limit. 
func (c *NoopControl) Acquire() { 
    log.Debugf("NoopControl[%s]: Seeking permission.", c.Label) 
    log.Debugf("NoopControl[%s]: Granted permission.", c.Label) 
} 

NO戻り値func (c *NoopControl) Acquire()があります。

+0

間違ったバージョンのコードを見ていると思います。パッチされたバージョンではboolが返されます:https://github.com/andresdouglas/cuttle/blob/master/cuttle/limitcontrol.go – Andres

+0

@Andresまあ、ローカルコードのバージョンを '更新する 'べきです。このhttps://github.com/andresdouglas/cuttle/blob/master/main.go#L14(404あります)をチェックしてください。 – Justlike

+0

優れたキャッチ!それを試してみましょう – Andres

関連する問題