OSDN Git Service

:sparkles: Add version notification (#1258)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Tue, 21 Aug 2018 08:53:19 +0000 (16:53 +0800)
committerPaladz <yzhu101@uottawa.ca>
Tue, 21 Aug 2018 08:53:19 +0000 (16:53 +0800)
commita9a4f1b37872a5636548f66403689e5739639d30
tree89bdbd4c4501891fca3e1699118c75f0e8f95908
parentb26d15540f077614e05c66e1809413456af6524b
:sparkles: Add version notification (#1258)

* pause

* Add version control

* Merge

* Add reset for notifiedTimes

* Fix logic

* Fix bugs

* Fix infinite loops for updating maxVerSeen

* Add 1.0.3 CompatibleWith rule.

* Fix deprecate bugs.

* :shirt: clean up.

* :zap: Pause

* :zap: Use github.com/hashicorp/go-version.

* :zap: Revert to original versioning system.

* :heavy_minus_sign: Remove CheckUpdate msgs

* :heavy_minus_sign: Clean up imports.

* :construction: Debugging sw.Peers()

* :construction: Trying to fix import cycle.

* :sparkles: Versioning.

* :art: Refine

* :hammer: Reconstrcut update struct

* :art: log withfiels in version

* :lock: Add error check for CompatibleWith()

* :art: Clean up.

* :memo: Add docs for CheckUpdate

* :art: Use iota for version status

* :hammer: Add lock for version statu

* :pencil2: Fix typo

* :art: Change version status feilds to private

* :art: Refact UpdateStatus{}

* :fire: Clean up.
15 files changed:
api/nodeinfo.go
netsync/handle.go
netsync/message.go
p2p/node_info.go
p2p/switch.go
vendor/github.com/hashicorp/go-version/.travis.yml [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/LICENSE [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/README.md [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/constraint.go [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/constraint_test.go [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/version.go [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/version_collection.go [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/version_collection_test.go [new file with mode: 0644]
vendor/github.com/hashicorp/go-version/version_test.go [new file with mode: 0644]
version/version.go