Commit Graph

148 Commits

Author SHA1 Message Date
Juan Batiz-Benet
555bc871fc bugfixes to prev commit 2014-10-09 04:53:02 -07:00
Juan Batiz-Benet
972c0f7b4b u.DOut -> log.Debug
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
Jeromy
1aafd285b5 add in some extra debug logging, and increase routing table latencies 2014-10-08 21:55:50 +00:00
Juan Batiz-Benet
66839fa1de changed logging, in dht and elsewhere
- use log.* instead of u.*
- use automatic type conversions to .String()
  (Peer.String() prints nicely, and avoids calling b58 encoding
  until needed)
2014-10-07 21:33:59 -07:00
Juan Batiz-Benet
77fccaa2f3 Obviated need for .ID.Pretty() all over the place. 2014-10-06 04:23:55 -07:00
Juan Batiz-Benet
910a76e220 updated multiaddr use across codebase 2014-10-06 04:13:43 -07:00
Jeromy
a0d77dbf99 fixed keyspace tests on 32 bit systems 2014-10-04 19:29:08 +00:00
Juan Batiz-Benet
0c8ae7674e loggers: set level 2014-10-04 03:53:21 -07:00
Juan Batiz-Benet
7e1cd59259 initialize loggers at ERROR 2014-10-04 03:36:30 -07:00
Juan Batiz-Benet
612be59643 use string datastore keys. 2014-10-03 15:39:22 -07:00
Juan Batiz-Benet
f085d594aa vendoring ipns things 2014-10-01 00:44:22 -07:00
Jeromy
9652ada0d2 implement publisher for ipns to wait until moments of rapid churn die down 2014-10-01 00:42:17 -07:00
Jeromy
54142b2173 update logging in multiple packages 2014-10-01 00:41:30 -07:00
Jeromy
6080944af9 writing files inside ipns works now! also implemented resolve cli command 2014-10-01 00:41:29 -07:00
Jeromy
006b68b558 WIP: getting closer to being able to write in ipns dirs 2014-10-01 00:41:29 -07:00
Jeromy
7f5e13716d writes to ipns work if the top object is the written file (no directories yet!) 2014-10-01 00:39:57 -07:00
Jeromy
e61c59758b implement initial ipns filesystem interface as well as plumbing command for publishing 2014-10-01 00:39:57 -07:00
Jeromy
375a38c5f7 add basic publish command, needs polish 2014-10-01 00:39:57 -07:00
Jeromy
a65e8600a3 catch ipns branch up to master and make all things compile 2014-10-01 00:37:53 -07:00
Jeromy
2aa2b8c6c7 add routing resolver test 2014-10-01 00:26:59 -07:00
Jeromy
8ddfb57c59 some bugfixes and added logging 2014-10-01 00:26:59 -07:00
Jeromy
b5fd9492d7 fixes to make interface more usable 2014-10-01 00:25:52 -07:00
Jeromy
727b6bf9a3 udpated commands and RPC dialing to work with new configuration changes 2014-09-27 16:02:50 -07:00
Juan Batiz-Benet
53f0b117f5 update net with peerstore 2014-09-26 02:41:46 -07:00
Brian Tiger Chow
e2a9c5de00 feat(net:service, routing) remove error return value 2014-09-24 23:35:36 -04:00
Jeromy
c044d9c32e move mock routing tests to proper directory 2014-09-23 18:23:46 -04:00
Jeromy
414ff34194 change back to using Client method 2014-09-23 18:23:46 -04:00
Jeromy
c45cc8c448 implement a mock dht for use in testing 2014-09-23 18:23:46 -04:00
Juan Batiz-Benet
10a1a01cf7 ping: return sme msg
This fixes the broken pinging. (the issue was the cluster
level, it's bein set incorrectly (off by one))

Anyway, this works now:

    [peer: QmfQTbC3LxfpK5WoyHW2WgnAzo6d6GePuq2wHTsJNXM5PS] Sent message type: 'PING' [to = QmNXUeFrV9gxR4aqJddEsfhWZLSJrUsfpUSeRb3R7xvSp9]
    [QmfQTbC3LxfpK5WoyHW2WgnAzo6d6GePuq2wHTsJNXM5PS] ping QmNXUeFrV9gxR4aqJddEsfhWZLSJrUsfpUSeRb3R7xvSp9 end (err = %!s(<nil>))

cc @whyrusleeping
2014-09-23 05:23:54 -07:00
Jeromy
7228786981 make a few tests perform operations in two directions instead of one 2014-09-22 22:34:30 -07:00
Jeromy
7bc4fbfa5d turn logging on by default, also make Provide not fail when no peers connected 2014-09-22 19:22:04 -07:00
Juan Batiz-Benet
adcf0bfe70 better logging for ping 2014-09-22 15:53:37 -07:00
Brian Tiger Chow
197046c9d2 fix(routing:dht) add ctx args 2014-09-22 04:06:19 -07:00
Brian Tiger Chow
d514b91ff3 fix(routing:dht) implement FindProvidersAsync in terms of FindProviders
until construction is complete on the actual async method

reverts changes from ec50703395098f75946f0bad01816cc54ab18a58

ec50703395
2014-09-22 04:06:18 -07:00
Juan Batiz-Benet
52cefb16cd Routing uses context now
@perfmode boom
2014-09-22 04:06:18 -07:00
Juan Batiz-Benet
aa29603923 dht tests pass again 2014-09-22 04:06:16 -07:00
Juan Batiz-Benet
afb1d01048 provider testing 2014-09-22 04:06:15 -07:00
Brian Tiger Chow
0bd8f2092b refac(routing) replace timeout -> ctx
@jbenet oh hai there!
2014-09-22 04:06:14 -07:00
Juan Batiz-Benet
043c09e14b fixed get/put 2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
9dd39de491 Fixed connections all over. 2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
f41817c8d3 use Alpha as the concurrency.
cc @whyrusleeping
2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
de7af506b1 dht.Connect(Peer) 2014-09-22 04:06:12 -07:00
Juan Batiz-Benet
9ea715cb10 comment out dht_test for now. 2014-09-22 04:06:10 -07:00
Juan Batiz-Benet
700b6ab99f remove start 2014-09-22 04:05:23 -07:00
Juan Batiz-Benet
dc0fbfd3d3 added some logging 2014-09-22 04:05:23 -07:00
Juan Batiz-Benet
a114e9cd12 better query processing (runner) 2014-09-22 04:05:22 -07:00
Brian Tiger Chow
56e6c453a2 fix(routing/dht) match the routing interface
the channel's "spin" is specified in the interface now =)
2014-09-22 04:05:21 -07:00
Juan Batiz-Benet
29322a24da tests compile 2014-09-22 04:05:21 -07:00
Juan Batiz-Benet
67bd041b9c got everything to build 2014-09-22 04:05:21 -07:00
Juan Batiz-Benet
e62b822277 refactored keyspace Adjusted -> Bytes 2014-09-22 04:05:20 -07:00